summary refs log tree commit diff
path: root/11/tests
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2020-12-10 23:23:14 -0800
committerIrene Knapp <ireneista@gmail.com>2020-12-10 23:23:14 -0800
commitee6e752de4be6bbe1e1fc4713504be068373a140 (patch)
tree5557adb6b24d787cac6d4cd152a128ef006603e9 /11/tests
parent99ffb910798d46b8c8a6d91aa8ff2b06fc4313f8 (diff)
11
Diffstat (limited to '11/tests')
-rw-r--r--11/tests/main.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/11/tests/main.rs b/11/tests/main.rs
new file mode 100644
index 0000000..c09af93
--- /dev/null
+++ b/11/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_11")?;
+
+  command.arg("input");
+  command.assert().success().stdout("2406\n2149\n");
+
+  Ok(())
+}
+