From: Ian Jackson Date: Sun, 14 Mar 2021 10:04:23 +0000 (+0000) Subject: hidden tests: Move out again X-Git-Tag: otter-0.4.0~82 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=26c86542f0e9c337d602670a34cedd824e6d0d57;p=otter.git hidden tests: Move out again Signed-off-by: Ian Jackson --- diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs index f8a2a6c8..42873190 100644 --- a/apitest/at-otter.rs +++ b/apitest/at-otter.rs @@ -532,6 +532,15 @@ impl Ctx { assert_eq!(b_pieces[b_pawns[1]].pos, a_pieces[a_pawns[0]].pos); + let out_again = (a_pieces[hand].pos + PosC([5, 0]))?; + for (xi, &p) in a_pawns.iter().enumerate().take(1) { + alice.api_with_piece_op_synch(&mut a_pieces, p, "m", json![ + out_again.0 + ])?; + } + + alice.synch()?; + bob.synchu(&mut b_pieces)?; // to repro a bug, have Alice move the black pawn out again // observe yellow highlight in bob's view and black pawn is in wrong