Benchmark suite (#16)

This commit is contained in:
Patrick Stevens
2022-12-11 12:16:07 +00:00
committed by GitHub
parent 4205ec4661
commit d323984a12
11 changed files with 324 additions and 120 deletions

View File

@@ -38,7 +38,6 @@ module TestDay1 =
let ``Part 1, given example`` () =
Day1.part1 (StringSplitEnumerator.make '\n' testInput) |> shouldEqual 24000
[<Test>]
let ``Part 2, given example`` () =
Day1.part2 (StringSplitEnumerator.make '\n' testInput) |> shouldEqual 45000

View File

@@ -44,7 +44,7 @@ Monkey 3:
[<Test>]
let ``Part 1, single round, given`` () =
let monkeys = Day11.parse (StringSplitEnumerator.make '\n' input)
let inspections = Array.zeroCreate monkeys.Count
let inspections = Array.zeroCreate monkeys.Length
Day11.oneRoundDivThree monkeys inspections