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:
a3ee1d4
)
apitest: Test library listing
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 15 May 2021 18:04:40 +0000
(19:04 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 15 May 2021 18:04:40 +0000
(19:04 +0100)
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 d42f47f50c96f5430a06bf862f11b87cc7540e55..1b5cf178caa619bbb8f01cc1bb1440ac3c9dcc9d 100644
(file)
--- a/
apitest/at-otter.rs
+++ b/
apitest/at-otter.rs
@@
-496,6
+496,15
@@
impl Ctx {
fn library_load(&mut self) {
prepare_game(&self.su().ds, &self.prctx, TABLE)?;
+ let command = self.su().ds.ss(
+ "library-list wikimedia chess-yellow-?"
+ )?;
+ let output: String = self.otter(&command)?.into();
+ assert!( Regex::new("(?m)^chess-yellow-K *the yellow king$")?
+ .find(&output)
+ .is_some(),
+ "got: {}", &output);
+
let command = self.su().ds.ss(
"library-add @table@ wikimedia chess-blue-?"
)?;