From: Ian Jackson Date: Fri, 21 May 2021 18:44:32 +0000 (+0100) Subject: apitest: Rename reset_game() to otter_resetting() X-Git-Tag: otter-0.6.0~96 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=637ea094839d10812763fce80057918e58894484;p=otter.git apitest: Rename reset_game() to otter_resetting() Signed-off-by: Ian Jackson --- diff --git a/apitest/at-bundles.rs b/apitest/at-bundles.rs index b1e09eb0..8a0b763b 100644 --- a/apitest/at-bundles.rs +++ b/apitest/at-bundles.rs @@ -20,7 +20,7 @@ impl Ctx { "big-bundle","duped-example", "chess-purple-cannon", "a purple cannon", &mut |ctx| { - ctx.reset_game(&ctx.ds().gss("reset modded-spec")?)?; + ctx.otter_resetting(&ctx.ds().gss("reset modded-spec")?)?; let alice = ctx.connect_player(&ctx.alice)?; let pieces = alice.pieces::()?; @@ -49,7 +49,7 @@ impl Ctx { fn reset_with_bundles(&mut self) { self.clear_reset_to_demo()?; - self.reset_game(&self.ds().gss( + self.otter_resetting(&self.ds().gss( "reset demo-in-test-bundle @examples@/test-bundle.zip" )?)?; diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs index bbcba3d1..d86d2540 100644 --- a/apitest/at-otter.rs +++ b/apitest/at-otter.rs @@ -146,7 +146,7 @@ impl Ctx { a_pieces[a_pawns[0]].pos); let command = self.ds().gss("reset demo")?; - self.reset_game(&command)?; + self.otter_resetting(&command)?; } #[throws(Explode)] @@ -178,7 +178,7 @@ impl Ctx { if !(py || gy) { break } let command = self.ds().also(&[("game",&game),("perm",&perm)]) .gss("reset --reset-table @perm@ @game@")?; - self.reset_game(&command).context(perm).context(game)?; + self.otter_resetting(&command).context(perm).context(game)?; } } diff --git a/apitest/main.rs b/apitest/main.rs index fba1923c..6460d7df 100644 --- a/apitest/main.rs +++ b/apitest/main.rs @@ -502,7 +502,7 @@ impl UsualCtx { } #[throws(AE)] - pub fn reset_game>(&mut self, args: &[S]) -> OtterOutput { + pub fn otter_resetting>(&mut self, args: &[S]) -> OtterOutput { self.has_lib_markers = false; self.otter(args)? } @@ -627,8 +627,8 @@ impl UsualCtx { #[throws(Explode)] pub fn clear_reset_to_demo(&mut self) { let ds = self.su().ds.clone(); - self.reset_game(&ds.gss("clear-game")?)?; - self.reset_game(&ds.gss("reset demo")?)?; + self.otter_resetting(&ds.gss("clear-game")?)?; + self.otter_resetting(&ds.gss("reset demo")?)?; } }