chiark / gitweb /
at-currency: Use move_money another time
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 21 May 2022 12:24:39 +0000 (13:24 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 21 May 2022 12:24:39 +0000 (13:24 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-currency.rs

index fcb7da4fa68ab0d1c28e7f4ea58371a8ac6349ee..7c6e2492f9f24ec765896bd2653133b72e1015d3 100644 (file)
@@ -42,11 +42,8 @@ impl Ctx {
     alice.api_piece(GH::Ungrab, PuSynch((&mut a_pieces, pile)), pile_pos)?;
     alice.synchu(&mut a_pieces)?;
 
-    alice.api_piece_op_single(PuSynch((&mut a_pieces, bank)).id(), (
-      "multigrab", json!({ "n": 13, 'z': "t000000000" })
-    ))?;
+    alice.move_money(&mut a_pieces, bank, 13, "t000000000", temp_pos)?;
     let moved = bank;
-    alice.api_piece(GH::Ungrab, PuSynch((&mut a_pieces, moved)), temp_pos)?;
     alice.synchu(&mut a_pieces)?;
     let bank = a_pieces.find_by_desc_glob("* 337ƒ*");
     a_pieces[moved].assert_desc_contains(" 13ƒ");