From: Ian Jackson Date: Sat, 13 Mar 2021 20:35:53 +0000 (+0000) Subject: at-otter hidden: Update when we move (specific, must generalise) X-Git-Tag: otter-0.4.0~92 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fa8608b3fb9b85d4fa2927555ba427fa6c7abd27;p=otter.git at-otter hidden: Update when we move (specific, must generalise) Signed-off-by: Ian Jackson --- diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs index 069ffeda..12fbf507 100644 --- a/apitest/at-otter.rs +++ b/apitest/at-otter.rs @@ -512,9 +512,10 @@ impl Ctx { } for (xi, &p) in a_pawns.iter().enumerate().take(1) { - alice.api_with_piece_op_synch(&mut a_pieces, p, "m", json![ - [ (xi+1) * 15, 20 ] - ])?; + let xix: Coord = xi.try_into().unwrap(); + let pos = PosC([ (xix + 1) * 15, 20 ]); + a_pieces[p].pos = pos; + alice.api_with_piece_op_synch(&mut a_pieces, p, "m", json![pos.0])?; } alice.synchu(&mut a_pieces)?;