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:
ea6ab3e
)
wdt-altergame: Refactor to use UsualSetup
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 14 Feb 2021 19:28:34 +0000
(19:28 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 14 Feb 2021 19:28:42 +0000
(19:28 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
wdriver/wdt-altergame.rs
patch
|
blob
|
history
diff --git
a/wdriver/wdt-altergame.rs
b/wdriver/wdt-altergame.rs
index c75539cd884f6885c13f3a38e2716de7660bb4b1..07d69d96fcbfa2b4c6737b050ae0e86b147c8b61 100644
(file)
--- a/
wdriver/wdt-altergame.rs
+++ b/
wdriver/wdt-altergame.rs
@@
-65,12
+65,7
@@
impl Ctx {
}
#[throws(AE)]
-fn main(){
- let (mut su, inst) = setup(module_path!()).always_context("setup")?;
- let [alice, _]: [Window; 2] =
- su.setup_static_users(&inst)?.try_into().unwrap();
- debug!("ok {:?}", alice);
-
+fn tests(UsualSetup { su, alice, ..}: UsualSetup) {
let mut c = Ctx { su, alice };
test!(c, "links", {
@@
-90,5
+85,8
@@
fn main(){
alice.synch()?;
});
-
info!("ok
");
+
debug!("finishing
");
}
+
+#[throws(AE)]
+fn main() { as_usual(tests)? }