diff options
author | Irene Knapp <ireneista@gmail.com> | 2020-12-16 22:47:29 -0800 |
---|---|---|
committer | Irene Knapp <ireneista@gmail.com> | 2020-12-16 22:47:29 -0800 |
commit | 9acefe571def801d63282620cb31833a321bc551 (patch) | |
tree | 5f2872ea26b3a92cf64502a18f2806adbcd48ef6 /17/tests | |
parent | eaac11df01dea60def680f61861fe7b728f03df1 (diff) |
17
Diffstat (limited to '17/tests')
-rw-r--r-- | 17/tests/main.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/17/tests/main.rs b/17/tests/main.rs new file mode 100644 index 0000000..394fb0f --- /dev/null +++ b/17/tests/main.rs @@ -0,0 +1,14 @@ +use assert_cmd::prelude::*; +use std::process::Command; + + +#[test] +fn personal_input() -> Result<(), Box<dyn std::error::Error>> { + let mut command = Command::cargo_bin("advent_17")?; + + command.arg("input"); + command.assert().success().stdout("265\n1936\n"); + + Ok(()) +} + |