summary refs log tree commit diff
path: root/16/tests
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2021-12-15 22:33:31 -0800
committerIrene Knapp <ireneista@gmail.com>2021-12-15 22:33:31 -0800
commit268e1a82fa61531edaaec472dbd5cd7df044176d (patch)
tree096c552ca2b5973350c12783ec8fba1f6e54f444 /16/tests
parentea68d068cfa85d3e5ca5efe44bf470554a2c4006 (diff)
16, yay
Diffstat (limited to '16/tests')
-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(())
+}
+