From 5679068cb93ac96439d3ed8410a2776cfeb3e09b Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Fri, 17 Dec 2021 23:05:07 -0800 Subject: 18 --- 18/tests/.main.rs.swn | Bin 0 -> 12288 bytes 18/tests/main.rs | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 18/tests/.main.rs.swn create mode 100644 18/tests/main.rs (limited to '18/tests') diff --git a/18/tests/.main.rs.swn b/18/tests/.main.rs.swn new file mode 100644 index 0000000..6017cf8 Binary files /dev/null and b/18/tests/.main.rs.swn differ diff --git a/18/tests/main.rs b/18/tests/main.rs new file mode 100644 index 0000000..af55fe3 --- /dev/null +++ b/18/tests/main.rs @@ -0,0 +1,19 @@ +use assert_cmd::prelude::*; +//use predicates::prelude::*; +use std::process::Command; + + +#[test] +fn personal_input() -> Result<(), Box> { + let mut command = Command::cargo_bin("advent_18")?; + + command.arg("input"); + command.assert().success().stdout( + "3216\n\ + 4643\n"); + + + + Ok(()) +} + -- cgit 1.4.1