diff options
author | Irene Knapp <ireneista@gmail.com> | 2021-12-17 23:05:07 -0800 |
---|---|---|
committer | Irene Knapp <ireneista@gmail.com> | 2021-12-17 23:05:07 -0800 |
commit | 5679068cb93ac96439d3ed8410a2776cfeb3e09b (patch) | |
tree | 3279b012e7644e21c502d352caef4d8dc72e8b40 /18/tests | |
parent | ccd4d3b436259b86f2fa3b433cd19a7bd60752da (diff) |
18
Diffstat (limited to '18/tests')
-rw-r--r-- | 18/tests/.main.rs.swn | bin | 0 -> 12288 bytes | |||
-rw-r--r-- | 18/tests/main.rs | 19 |
2 files changed, 19 insertions, 0 deletions
diff --git a/18/tests/.main.rs.swn b/18/tests/.main.rs.swn new file mode 100644 index 0000000..6017cf8 --- /dev/null +++ b/18/tests/.main.rs.swn Binary files differdiff --git a/18/tests/main.rs b/18/tests/main.rs new file mode 100644 index 0000000..af55fe3 --- /dev/null +++ b/18/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_18")?; + + command.arg("input"); + command.assert().success().stdout( + "3216\n\ + 4643\n"); + + + + Ok(()) +} + |