summary refs log tree commit diff
path: root/06/tests
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2021-12-05 21:23:12 -0800
committerIrene Knapp <ireneista@gmail.com>2021-12-05 21:23:12 -0800
commit84f096f97b40e7f7394b72e3b54b19804e9ab6ac (patch)
tree45fd47ebdcb1fcf67ec02a4cc9bc786f80f4c690 /06/tests
parente5db5a78aa0bdaf9066df2c0316663e3365de209 (diff)
06
Diffstat (limited to '06/tests')
-rw-r--r--06/tests/main.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/06/tests/main.rs b/06/tests/main.rs
new file mode 100644
index 0000000..ad291d8
--- /dev/null
+++ b/06/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_05")?;
+
+  command.arg("input");
+  command.assert().success().stdout(
+      "4655\n\
+      20500\n");
+
+  Ok(())
+}
+