From 117ab73fa491c4692524068c077d5dd6fb5101bb Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Mon, 21 Dec 2020 23:29:18 -0800 Subject: 22 --- 22/tests/main.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 22/tests/main.rs (limited to '22/tests') diff --git a/22/tests/main.rs b/22/tests/main.rs new file mode 100644 index 0000000..763a28a --- /dev/null +++ b/22/tests/main.rs @@ -0,0 +1,14 @@ +use assert_cmd::prelude::*; +use std::process::Command; + + +#[test] +fn personal_input() -> Result<(), Box> { + let mut command = Command::cargo_bin("advent_22")?; + + command.arg("input"); + command.assert().success().stdout("32677\n33661\n"); + + Ok(()) +} + -- cgit 1.4.1