summary refs log tree commit diff
path: root/09/tests
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2021-12-08 21:28:44 -0800
committerIrene Knapp <ireneista@gmail.com>2021-12-08 21:28:44 -0800
commitfb70e46dc0009c69f617135b0249cdda31b978bf (patch)
tree96864a9334c6c0c9630b6a65da2e9f03fc6b1fb9 /09/tests
parent5879332d34745c8fa22881b899edbb04d31beb2b (diff)
09 :)
Diffstat (limited to '09/tests')
-rw-r--r--09/tests/main.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/09/tests/main.rs b/09/tests/main.rs
new file mode 100644
index 0000000..ca042d2
--- /dev/null
+++ b/09/tests/main.rs
@@ -0,0 +1,17 @@
+use assert_cmd::prelude::*;
+//use predicates::prelude::*;
+use std::process::Command;
+
+
+#[test]
+fn personal_input() -> Result<(), Box<dyn std::error::Error>> {
+  let mut command = Command::cargo_bin("advent_09")?;
+
+  command.arg("input");
+  command.assert().success().stdout(
+      "502\n\
+      1330560\n");
+
+  Ok(())
+}
+