summary refs log tree commit diff
path: root/12/tests
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2021-12-11 21:35:38 -0800
committerIrene Knapp <ireneista@gmail.com>2021-12-11 21:35:38 -0800
commit55fc103c60e2d7063d8ea75892058f8bd9d723a9 (patch)
tree390c12b88180a83f779a2b21c59e9ab33828e822 /12/tests
parente07d2a9191fe5204a3cff7e9a62ba1c7c2d3a618 (diff)
12
Diffstat (limited to '12/tests')
-rw-r--r--12/tests/main.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/12/tests/main.rs b/12/tests/main.rs
new file mode 100644
index 0000000..962bfa0
--- /dev/null
+++ b/12/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_12")?;
+
+  command.arg("input");
+  command.assert().success().stdout(
+      "5576\n\
+      152837\n");
+
+  Ok(())
+}
+