From: Ian Jackson Date: Mon, 22 Feb 2021 00:26:27 +0000 (+0000) Subject: tests: wip library-load X-Git-Tag: otter-0.4.0~380 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fcad2aac6174d022adcd176d4d248d46379885cf;p=otter.git tests: wip library-load Signed-off-by: Ian Jackson --- diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs index 5da7e01a..ae986e64 100644 --- 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)]