From 89fadd5dd2951bac15980453e048f9243ed813fd Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 5 Apr 2021 12:37:41 +0100 Subject: [PATCH] wdt-hand: New test case for ungrab-then-regrab (2) Check that the piece is now held by alice. This fails without the grab/regrab fix. Signed-off-by: Ian Jackson --- wdriver/wdt-hand.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wdriver/wdt-hand.rs b/wdriver/wdt-hand.rs index ddee3dc1..c87d792d 100644 --- a/wdriver/wdt-hand.rs +++ b/wdriver/wdt-hand.rs @@ -267,6 +267,9 @@ impl Ctx { dbgc!(&who.name); let w = su.w(who)?; + let held = w.piece_held(PAWN)?; + assert_eq!( held.unwrap(), ALICE ); + let log = w.retrieve_log(*gen)?; assert_eq!( log.find_conflicts(), Vec::::new() ); } -- 2.30.2