chiark / gitweb /
hidden tests: Move out again
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Mar 2021 10:04:23 +0000 (10:04 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Mar 2021 10:04:23 +0000 (10:04 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-otter.rs

index f8a2a6c80533b16954dbed8965ba4b0ebd80f747..42873190b5689af4821fc36d7fd062c4550a3efc 100644 (file)
@@ -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