From: Ian Jackson Date: Tue, 13 Jul 2021 15:17:27 +0000 (+0100) Subject: tests: wdt-bundles: Break out VATIKAN_DECK and VATIKAN_HAND X-Git-Tag: otter-0.7.2~110 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=72bdd5c73e5718741f53790046118c2fd33e4d4d;p=otter.git tests: wdt-bundles: Break out VATIKAN_DECK and VATIKAN_HAND Signed-off-by: Ian Jackson --- diff --git a/wdriver/wdt-bundles.rs b/wdriver/wdt-bundles.rs index ec7a503e..48c8c982 100644 --- a/wdriver/wdt-bundles.rs +++ b/wdriver/wdt-bundles.rs @@ -18,6 +18,9 @@ impl Ctx { } } +const VATIKAN_DECK: Pos = Pos::new(150,184); +const VATIKAN_HAND: Pos = Pos::new(68, 175); + #[throws(Explode)] fn tests(UsualSetup { su, alice, bob, ..}: UsualSetup) { let mut c = Ctx { su, alice, bob }; @@ -62,8 +65,8 @@ fn tests(UsualSetup { su, alice, bob, ..}: UsualSetup) { let game_spec = &c.su.ds.subst("@specs@/vatikan.game.toml")?; c.otter(&["reset"],&[&game_spec])?; - let deckg = Pos::new(150,184); - let handg = Pos::new(68, 175); + let deckg = VATIKAN_DECK; + let handg = VATIKAN_HAND; { let mut alice = c.su.w(&c.alice)?;