chiark / gitweb /
at-otter hidden: Check that things are where we expect
[otter.git] / apitest / at-otter.rs
index 12fbf507ffdf7311cee5bbe110228c53f1d3eab1..b59095c3e678cb1bc1c52df124e0670ff0d1aab8 100644 (file)
@@ -520,6 +520,9 @@ impl Ctx {
 
     alice.synchu(&mut a_pieces)?;
     bob.synchu(&mut b_pieces)?;
+    assert_eq!(b_pieces[b_pawns[1]].pos,
+               a_pieces[a_pawns[0]].pos);
+
 
     // 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