summary refs log tree commit diff
path: root/10/tests
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2021-12-09 22:06:45 -0800
committerIrene Knapp <ireneista@gmail.com>2021-12-09 22:06:45 -0800
commit964c72cc4fe03c06bd067fc7605cca96f8b94943 (patch)
treee7b7e44cfc57f4e8ececcb9367057f72b8e9eabb /10/tests
parentfb70e46dc0009c69f617135b0249cdda31b978bf (diff)
10
Diffstat (limited to '10/tests')
-rw-r--r--10/tests/main.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/10/tests/main.rs b/10/tests/main.rs
new file mode 100644
index 0000000..ef0958a
--- /dev/null
+++ b/10/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_10")?;
+
+  command.arg("input");
+  command.assert().success().stdout(
+      "387363\n\
+      4330777059\n");
+
+  Ok(())
+}
+