This commit is contained in:
Patrick Stevens
2022-12-17 16:44:30 +00:00
committed by GitHub
parent c4be907aa7
commit b40066eab4
12 changed files with 418 additions and 71 deletions

View File

@@ -0,0 +1,31 @@
namespace AdventOfCode2022.Test
open NUnit.Framework
open FsUnitTyped
open AdventOfCode2022
[<TestFixture>]
module TestDay17 =
let input = ">>><<><>><<<>><>>><<<>>><<<><<<>><>><<>>"
[<Test>]
let ``Part 1, given`` () =
Day17.part1 (input.TrimEnd ()) |> shouldEqual 3068
[<Test>]
let ``Part 1`` () =
let input = Assembly.readResource "Day17.txt"
Day17.part1 (input.TrimEnd ()) |> shouldEqual 3127
[<Test>]
let ``Part 2, given`` () =
Day17.part2 (input.TrimEnd ()) |> shouldEqual 1514285714288L
[<Test>]
let ``Part 2`` () =
let input = Assembly.readResource "Day17.txt"
Day17.part2 (input.TrimEnd ()) |> shouldEqual 1542941176480L