From 26c86542f0e9c337d602670a34cedd824e6d0d57 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 14 Mar 2021 10:04:23 +0000 Subject: [PATCH] hidden tests: Move out again Signed-off-by: Ian Jackson --- apitest/at-otter.rs | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.30.2