chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f91319
)
specs: Test ResetFromNamesSpec (adhoc)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 19 May 2021 22:20:19 +0000
(23:20 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 19 May 2021 22:59:15 +0000
(23:59 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-bundles.rs
patch
|
blob
|
history
diff --git
a/apitest/at-bundles.rs
b/apitest/at-bundles.rs
index e56bcd0903df23fa390ace461f6edef338a872c3..ad2f9c1fb91dc6d110848da38860c716b9747bcd 100644
(file)
--- a/
apitest/at-bundles.rs
+++ b/
apitest/at-bundles.rs
@@
-20,12
+20,23
@@
impl Ctx {
"big-bundle","duped-example", "chess-purple-cannon", "a purple cannon"
)?;
}
+
+ #[throws(Explode)]
+ fn builtin_spec(&mut self) {
+ self.su().mgmt_conn.borrow_mut().alter_game(
+ vec![ MGI::ResetFromNamedSpec {
+ spec: "demo".to_owned(),
+ }],
+ None,
+ )?;
+ }
}
#[throws(Explode)]
fn tests(mut c: Ctx) {
test!(c, "bundles", c.bundles() ?);
test!(c, "big", c.big() ?);
+ test!(c, "builtin-spec", c.builtin_spec() ?);
}
#[throws(Explode)]