Skip to content

Commit

Permalink
[Day 24] tests
Browse files Browse the repository at this point in the history
  • Loading branch information
goggle committed Dec 26, 2023
1 parent 6b0dd54 commit 6d568ed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -313,3 +313,13 @@ end
@test AdventOfCode2023.Day23.day23(sample) == [94, 154]
@test AdventOfCode2023.Day23.day23() == [2394, 6554]
end

@testset "Day 24" begin
sample = "19, 13, 30 @ -2, 1, -2\n" *
"18, 19, 22 @ -1, -1, -2\n" *
"20, 25, 34 @ -2, -2, -4\n" *
"12, 31, 28 @ -1, -2, -1\n" *
"20, 19, 15 @ 1, -5, -3\n"
hailstones_sample = AdventOfCode2023.Day24.parse_input(sample)
@test AdventOfCode2023.Day24.part1(hailstones_sample; leftbound=7, rightbound=27) == 2
end

0 comments on commit 6d568ed

Please sign in to comment.