chiark / gitweb /
tests: wip library-load
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 22 Feb 2021 00:26:27 +0000 (00:26 +0000)
committerIan 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

index 5da7e01aab36d766c274daae1dceca785518c7fa..ae986e64aed65b62444a852d3d4d1375ccba0e91 100644 (file)
@@ -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)]