From: Ian Jackson Date: Sun, 1 May 2022 20:15:11 +0000 (+0100) Subject: at-currency: Test merging properly X-Git-Tag: otter-1.1.0~324 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=10c066c8d728181157b0796e14fbb725cf100d85;p=otter.git at-currency: Test merging properly Signed-off-by: Ian Jackson --- diff --git a/apitest/at-currency.rs b/apitest/at-currency.rs index 67d960b9..62b71f64 100644 --- a/apitest/at-currency.rs +++ b/apitest/at-currency.rs @@ -38,6 +38,12 @@ impl Ctx { let bank = a_pieces.find_by_desc_glob("* 337ƒ*"); a_pieces[moved].assert_desc_contains(" 13ƒ"); + alice.api_piece(GH::With, PuSynch((&mut a_pieces, moved)), pile_pos)?; + alice.synchu(&mut a_pieces)?; + assert!(a_pieces[moved].info.is_null()); + a_pieces[pile].assert_desc_contains(" 63ƒ"); + + // This saves us some complaints let _ = moved; let _ = bank; let _ = pile;