summary refs log tree commit diff
path: root/16/tests
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2020-12-15 22:07:54 -0800
committerIrene Knapp <ireneista@gmail.com>2020-12-15 22:07:54 -0800
commiteaac11df01dea60def680f61861fe7b728f03df1 (patch)
tree5a6f8db5d45999e08957c6f481c7c83fb7c34209 /16/tests
parent7357cbdbd4424a06db8fb11546626f97783135a6 (diff)
16
Diffstat (limited to '16/tests')
-rw-r--r--16/tests/main.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/16/tests/main.rs b/16/tests/main.rs
new file mode 100644
index 0000000..ed02398
--- /dev/null
+++ b/16/tests/main.rs
@@ -0,0 +1,14 @@
+use assert_cmd::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("25788\n3902565915559\n");
+
+  Ok(())
+}
+