From 268e1a82fa61531edaaec472dbd5cd7df044176d Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Wed, 15 Dec 2021 22:33:31 -0800 Subject: 16, yay --- 16/tests/main.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 16/tests/main.rs (limited to '16/tests') diff --git a/16/tests/main.rs b/16/tests/main.rs new file mode 100644 index 0000000..ba7a189 --- /dev/null +++ b/16/tests/main.rs @@ -0,0 +1,18 @@ +use assert_cmd::prelude::*; +//use predicates::prelude::*; +use std::process::Command; + + +#[test] +fn personal_input() -> Result<(), Box> { + let mut command = Command::cargo_bin("advent_16")?; + + command.arg("input"); + command.assert().success().stdout( + "989\n\ + 7936430475134\n"); + + + Ok(()) +} + -- cgit 1.4.1