From 26c42134a8a66f02aedc0a77be3ab46b170a9d76 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Mon, 21 Dec 2020 23:29:11 -0800 Subject: 21 --- 21/tests/main.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 21/tests/main.rs (limited to '21/tests') diff --git a/21/tests/main.rs b/21/tests/main.rs new file mode 100644 index 0000000..96d2816 --- /dev/null +++ b/21/tests/main.rs @@ -0,0 +1,15 @@ +use assert_cmd::prelude::*; +use std::process::Command; + + +#[test] +fn personal_input() -> Result<(), Box> { + let mut command = Command::cargo_bin("advent_21")?; + + command.arg("input"); + command.assert().success().stdout( + "2150\nvpzxk,bkgmcsx,qfzv,tjtgbf,rjdqt,hbnf,jspkl,hdcj\n"); + + Ok(()) +} + -- cgit 1.4.1