diff options
author | Irene Knapp <ireneista@gmail.com> | 2021-12-22 03:13:06 -0800 |
---|---|---|
committer | Irene Knapp <ireneista@gmail.com> | 2021-12-22 03:13:06 -0800 |
commit | 7b93f6899397d9a8841e33470c79525c1ad9027c (patch) | |
tree | 9e0f1124ebd507195ec1b2013e0e9e83f88416c4 /22/tests | |
parent | 4cf1061e00993118847c24177ea2cc1e5455211d (diff) |
22
Diffstat (limited to '22/tests')
-rw-r--r-- | 22/tests/main.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/22/tests/main.rs b/22/tests/main.rs new file mode 100644 index 0000000..5012dd4 --- /dev/null +++ b/22/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_22")?; + + command.arg("input"); + command.assert().success().stdout( + "612714\n\ + 1311612259117092\n"); + + Ok(()) +} + |