summary refs log tree commit diff
path: root/16/tests/main.rs
diff options
context:
space:
mode:
Diffstat (limited to '16/tests/main.rs')
-rw-r--r--16/tests/main.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/16/tests/main.rs b/16/tests/main.rs
new file mode 100644
index 0000000..ba7a189
--- /dev/null
+++ b/16/tests/main.rs
@@ -0,0 +1,18 @@
+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_16")?;
+
+  command.arg("input");
+  command.assert().success().stdout(
+      "989\n\
+      7936430475134\n");
+
+
+  Ok(())
+}
+