diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-12-10 03:50:49 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-12-10 03:50:49 -0500 |
commit | 08a9c733c13ba09cfa050b7922ac8ac1ec1e63f5 (patch) | |
tree | af2575c2ddb772fa8d858abd439eaf1b5b35cf91 | |
parent | cd0ce4cafedd9d0c1ff19a9e697d59df31724248 (diff) | |
download | advent-of-code-08a9c733c13ba09cfa050b7922ac8ac1ec1e63f5.tar.gz advent-of-code-08a9c733c13ba09cfa050b7922ac8ac1ec1e63f5.zip |
tests
-rw-r--r-- | src/2022/10/mod.rs | 2 | ||||
-rw-r--r-- | src/2022/9/mod.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/2022/10/mod.rs b/src/2022/10/mod.rs index 126a370..f582cf4 100644 --- a/src/2022/10/mod.rs +++ b/src/2022/10/mod.rs @@ -84,7 +84,7 @@ pub fn part2(ops: impl Iterator<Item = Op>) -> Result<i64> { fn test() { assert_eq!( part1(parse(parse::data(2022, 10).unwrap()).unwrap()).unwrap(), - 0 + 15680 ); assert_eq!( part2(parse(parse::data(2022, 10).unwrap()).unwrap()).unwrap(), diff --git a/src/2022/9/mod.rs b/src/2022/9/mod.rs index b4f5f0a..f075224 100644 --- a/src/2022/9/mod.rs +++ b/src/2022/9/mod.rs @@ -231,10 +231,10 @@ pub fn part2(moves: impl Iterator<Item = Move>) -> Result<i64> { fn test() { assert_eq!( part1(parse(parse::data(2022, 9).unwrap()).unwrap()).unwrap(), - 0 + 6037 ); assert_eq!( part2(parse(parse::data(2022, 9).unwrap()).unwrap()).unwrap(), - 0 + 2485 ); } |