From 9212ac0543ce2c8c6c5a93df841ac83c2dffd2d7 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sun, 12 Dec 2021 21:39:52 -0800 Subject: 13 --- 13/tests/main.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 13/tests/main.rs (limited to '13/tests') 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> { + let mut command = Command::cargo_bin("advent_13")?; + + command.arg("input"); + command.assert().success().stdout( + "592\n\ + ..##..##...##....##.####.####.#..#.#..#\n\ + ...#.#..#.#..#....#.#....#....#.#..#..#\n\ + ...#.#....#..#....#.###..###..##...#..#\n\ + ...#.#.##.####....#.#....#....#.#..#..#\n\ + #..#.#..#.#..#.#..#.#....#....#.#..#..#\n\ + .##...###.#..#..##..####.#....#..#..##.\n"); + + Ok(()) +} + -- cgit 1.4.1