This commit is contained in:
LunarAkai 2024-12-03 18:01:58 +01:00
commit 39436c752f
5 changed files with 154 additions and 2 deletions

11
tests/day_two.rs Normal file
View file

@ -0,0 +1,11 @@
use advent_of_code_2024::day_2::*;
#[test]
fn d2_is_safe() {
assert_eq!(is_safe("7 6 4 2 1"), true);
}
#[test]
fn d2_is_unsafe() {
assert_eq!(is_safe("1 2 7 8 9"), false);
}