Fix haxe 4.2 compatibility

This commit is contained in:
2021-04-05 19:47:53 -06:00
parent d00b2d02df
commit cc76199a72
5 changed files with 7 additions and 7 deletions

View File

@@ -48,9 +48,9 @@
// Day 4
(when (<= 0 (days.indexOf 4))
(assert (= 2 (Passports.countValidPassports (new Stream "src/year2020/inputs/day4-example.txt"))))
(assert (= 250 (Passports.countValidPassports (new Stream "src/year2020/inputs/day4-1.txt"))))
(assert (= 158 (Passports.countValidPassports (new Stream "src/year2020/inputs/day4-1.txt") "strict"))))
(assert (= 2 (Passports.countValidPassports (Stream.fromFile "src/year2020/inputs/day4-example.txt"))))
(assert (= 250 (Passports.countValidPassports (Stream.fromFile "src/year2020/inputs/day4-1.txt"))))
(assert (= 158 (Passports.countValidPassports (Stream.fromFile "src/year2020/inputs/day4-1.txt") "strict"))))
// Day 5
(when (<= 0 (days.indexOf 5))