mirror of
https://github.com/Smaug123/AdventOfCode2022
synced 2025-10-05 17:48:40 +00:00
33 lines
752 B
Forth
33 lines
752 B
Forth
namespace AdventOfCode2022.Test
|
|
|
|
open NUnit.Framework
|
|
open FsUnitTyped
|
|
open AdventOfCode2022
|
|
|
|
[<TestFixture>]
|
|
module TestDay13 =
|
|
|
|
let input =
|
|
"""
|
|
"""
|
|
|
|
[<Test>]
|
|
let ``Part 1, given`` () =
|
|
Day13.part1 (StringSplitEnumerator.make '\n' input) |> shouldEqual 31
|
|
|
|
[<Test>]
|
|
let ``Part 1`` () =
|
|
let input = Assembly.readResource "Day13.txt"
|
|
|
|
Day13.part1 (StringSplitEnumerator.make '\n' input) |> shouldEqual 456
|
|
|
|
|
|
[<Test>]
|
|
let ``Part 2, given`` () =
|
|
Day13.part2 (StringSplitEnumerator.make '\n' input) |> shouldEqual 29
|
|
|
|
[<Test>]
|
|
let ``Part 2`` () =
|
|
let input = Assembly.readResource "Day13.txt"
|
|
Day13.part2 (StringSplitEnumerator.make '\n' input) |> shouldEqual 454
|