namespace AdventOfCode2023.Test open AdventOfCode2023 open NUnit.Framework open FsUnitTyped open System.IO [] module TestDay16 = [] let sample = Assembly.getEmbeddedResource typeof.Assembly "day16.txt" [] let part1Sample () = sample |> Day16.part1 |> shouldEqual 46 [] let part2Sample () = sample |> Day16.part2 |> shouldEqual 51 [] let part1Actual () = let s = try File.ReadAllText (Path.Combine (__SOURCE_DIRECTORY__, "../../inputs/day16.txt")) with | :? DirectoryNotFoundException | :? FileNotFoundException -> Assert.Inconclusive () failwith "unreachable" Day16.part1 s |> shouldEqual 8112 [] let part2Actual () = let s = try File.ReadAllText (Path.Combine (__SOURCE_DIRECTORY__, "../../inputs/day16.txt")) with | :? DirectoryNotFoundException | :? FileNotFoundException -> Assert.Inconclusive () failwith "unreachable" Day16.part2 s |> shouldEqual 8314