Commit 46fd3c53 authored by Kai Brandes's avatar Kai Brandes

more tests for 3a

parent 1dff3d65
......@@ -54,6 +54,12 @@ mod tests {
assert_eq!(6, calc_day_3_a(String::from("31")));
assert_eq!(2, calc_day_3_a(String::from("23")));
assert_eq!(430, calc_day_3_a(String::from("312051")));
assert_eq!(38, calc_day_3_a(String::from("2343")));
assert_eq!(34, calc_day_3_a(String::from("1411")));
assert_eq!(123, calc_day_3_a(String::from("23134")));
assert_eq!(22, calc_day_3_a(String::from("1111")));
assert_eq!(610, calc_day_3_a(String::from("987653")));
assert_eq!(880, calc_day_3_a(String::from("1134411")));
}
#[test]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment