summary refs log tree commit diff
path: root/13/tests
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2021-12-12 21:39:52 -0800
committerIrene Knapp <ireneista@gmail.com>2021-12-12 21:39:52 -0800
commit9212ac0543ce2c8c6c5a93df841ac83c2dffd2d7 (patch)
tree42836ffbda5c0b01283ff7db853b718f7052b6f8 /13/tests
parent55fc103c60e2d7063d8ea75892058f8bd9d723a9 (diff)
13
Diffstat (limited to '13/tests')
-rw-r--r--13/tests/main.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/13/tests/main.rs b/13/tests/main.rs
new file mode 100644
index 0000000..69437e9
--- /dev/null
+++ b/13/tests/main.rs
@@ -0,0 +1,22 @@
+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_13")?;
+
+  command.arg("input");
+  command.assert().success().stdout(
+      "592\n\
+       ..##..##...##....##.####.####.#..#.#..#\n\
+       ...#.#..#.#..#....#.#....#....#.#..#..#\n\
+       ...#.#....#..#....#.###..###..##...#..#\n\
+       ...#.#.##.####....#.#....#....#.#..#..#\n\
+       #..#.#..#.#..#.#..#.#....#....#.#..#..#\n\
+       .##...###.#..#..##..####.#....#..#..##.\n");
+
+  Ok(())
+}
+