From: Ian Jackson Date: Sat, 21 May 2022 12:24:39 +0000 (+0100) Subject: at-currency: Use move_money another time X-Git-Tag: otter-1.1.0~35 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e1d39b5bdea414f23520d71799c749ea21a167cf;p=otter.git at-currency: Use move_money another time Signed-off-by: Ian Jackson --- diff --git a/apitest/at-currency.rs b/apitest/at-currency.rs index fcb7da4f..7c6e2492 100644 --- a/apitest/at-currency.rs +++ b/apitest/at-currency.rs @@ -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ƒ");