summary refs log tree commit diff
path: root/08/tests
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2021-12-07 22:30:48 -0800
committerIrene Knapp <ireneista@gmail.com>2021-12-07 22:30:48 -0800
commit5879332d34745c8fa22881b899edbb04d31beb2b (patch)
tree0920cf7b00bbc430f77a89e18668aa008d2005af /08/tests
parent8079dd2a895f8a55368761940eba5670e24d0411 (diff)
08
Diffstat (limited to '08/tests')
-rw-r--r--08/tests/main.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/08/tests/main.rs b/08/tests/main.rs
new file mode 100644
index 0000000..e9b1eb4
--- /dev/null
+++ b/08/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_07")?;
+
+  command.arg("input");
+  command.assert().success().stdout(
+      "343441\n\
+      98925151\n");
+
+  Ok(())
+}
+