Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tamer/tests')
-rw-r--r--tamer/tests/tameld.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tamer/tests/tameld.rs b/tamer/tests/tameld.rs
index 30b2fea..1bbad58 100644
--- a/tamer/tests/tameld.rs
+++ b/tamer/tests/tameld.rs
@@ -68,6 +68,19 @@ fn link_input_file_does_not_exist() -> Result<(), Box<dyn std::error::Error>> {
}
#[test]
+fn link_invalid_emit() -> Result<(), Box<dyn std::error::Error>> {
+ let mut cmd = Command::cargo_bin("tameld")?;
+ cmd.arg("foobar");
+ cmd.arg("--emit").arg("notgood");
+ cmd.arg("-o").arg("tests/data/test-output.xmle");
+ cmd.assert()
+ .failure()
+ .stderr(predicate::str::contains("--emit notgood"));
+
+ Ok(())
+}
+
+#[test]
fn link_empty_input_file() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("tameld")?;
cmd.arg("tests/data/empty.xmlo");