diff options
author | Irene Knapp <ireneista@gmail.com> | 2021-12-17 01:15:06 -0800 |
---|---|---|
committer | Irene Knapp <ireneista@gmail.com> | 2021-12-17 01:15:06 -0800 |
commit | ccd4d3b436259b86f2fa3b433cd19a7bd60752da (patch) | |
tree | 9e6d83e7c409d19c5b45db492386ce0201a5146d /17/tests | |
parent | 268e1a82fa61531edaaec472dbd5cd7df044176d (diff) |
17
Diffstat (limited to '17/tests')
-rw-r--r-- | 17/tests/main.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/17/tests/main.rs b/17/tests/main.rs new file mode 100644 index 0000000..20b4420 --- /dev/null +++ b/17/tests/main.rs @@ -0,0 +1,19 @@ +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_17")?; + + command.arg("input"); + command.assert().success().stdout( + "3160\n\ + 1928\n"); + + + + Ok(()) +} + |