diff options
author | Irene Knapp <ireneista@gmail.com> | 2021-12-07 03:14:11 -0800 |
---|---|---|
committer | Irene Knapp <ireneista@gmail.com> | 2021-12-07 03:14:11 -0800 |
commit | 8079dd2a895f8a55368761940eba5670e24d0411 (patch) | |
tree | 20f1da1af9ee1de1279556853520b45b978bef0e /07/tests | |
parent | 84f096f97b40e7f7394b72e3b54b19804e9ab6ac (diff) |
07
Diffstat (limited to '07/tests')
-rw-r--r-- | 07/tests/main.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/07/tests/main.rs b/07/tests/main.rs new file mode 100644 index 0000000..e9b1eb4 --- /dev/null +++ b/07/tests/main.rs @@ -0,0 +1,17 @@ +use assert_cmd::prelude::*; +//use predicates::prelude::*; +use std::process::Command; + + +#[test] +fn personal_input() -> Result<(), Box<dyn std::error::Error>> { + let mut command = Command::cargo_bin("advent_07")?; + + command.arg("input"); + command.assert().success().stdout( + "343441\n\ + 98925151\n"); + + Ok(()) +} + |