From 6d568ed7d6047ecf6743f15c0fb0d8a5efa17a4b Mon Sep 17 00:00:00 2001 From: Alexander Seiler Date: Wed, 27 Dec 2023 00:22:54 +0100 Subject: [PATCH] [Day 24] tests --- test/runtests.jl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 8db2b60..3ecd802 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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