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:
8b8c1e8
)
tests: wip library-load
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 22 Feb 2021 00:26:27 +0000
(
00:26
+0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 22 Feb 2021 00:26:27 +0000
(
00:26
+0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-otter.rs
patch
|
blob
|
history
diff --git
a/apitest/at-otter.rs
b/apitest/at-otter.rs
index 5da7e01aab36d766c274daae1dceca785518c7fa..ae986e64aed65b62444a852d3d4d1375ccba0e91 100644
(file)
--- a/
apitest/at-otter.rs
+++ b/
apitest/at-otter.rs
@@
-15,10
+15,15
@@
struct Ctx {
deref_to_field!{Ctx, SetupCore, su}
impl Ctx {
+ #[throws(AE)]
+ fn library_load(&self) {
+ prepare_game(&self.ds, TABLE)?;
+ }
}
#[throws(AE)]
-fn tests(Ctx { opts, su, spec, ..}: Ctx) {
+fn tests(mut c: Ctx) {
+ test!(c, "library-load", c.library_load()?);
}
#[throws(AE)]