From ce0fc259ee8c064e2cb58baa3053551e3187c496 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Mon, 7 Dec 2020 22:28:07 -0800 Subject: regression test for 07 --- 07/tests/main.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 07/tests/main.rs (limited to '07/tests') diff --git a/07/tests/main.rs b/07/tests/main.rs new file mode 100644 index 0000000..d80525c --- /dev/null +++ b/07/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_07")?; + + command.arg("input"); + command.assert().success().stdout("259\n45018\n"); + + Ok(()) +} + -- cgit 1.4.1