From c62c12a21b11413ee66eee359152d34075daa0e3 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sun, 19 Dec 2021 00:11:35 -0800 Subject: 19 --- 19/tests/.main.rs.swm | Bin 0 -> 12288 bytes 19/tests/.main.rs.swn | Bin 0 -> 12288 bytes 19/tests/main.rs | 19 +++++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 19/tests/.main.rs.swm create mode 100644 19/tests/.main.rs.swn create mode 100644 19/tests/main.rs (limited to '19/tests') diff --git a/19/tests/.main.rs.swm b/19/tests/.main.rs.swm new file mode 100644 index 0000000..5054379 Binary files /dev/null and b/19/tests/.main.rs.swm differ diff --git a/19/tests/.main.rs.swn b/19/tests/.main.rs.swn new file mode 100644 index 0000000..6017cf8 Binary files /dev/null and b/19/tests/.main.rs.swn differ diff --git a/19/tests/main.rs b/19/tests/main.rs new file mode 100644 index 0000000..ae2797e --- /dev/null +++ b/19/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_19")?; + + command.arg("small"); + command.assert().success().stdout( + "79\n\ + 3621\n"); + + + + Ok(()) +} + -- cgit 1.4.1