From d50b7c75cae9aac4c9263ce7f2927981b59eca9e Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Sun, 3 Dec 2023 23:22:44 -0600 Subject: [PATCH] tests: add tests for GearRatios challenge for actual puzzle input --- 03/GearRatios.Tests/GearRatios.Tests.csproj | 6 ++++++ 03/GearRatios.Tests/PuzzleSolverTests.cs | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/03/GearRatios.Tests/GearRatios.Tests.csproj b/03/GearRatios.Tests/GearRatios.Tests.csproj index d3b6c47..e0d4aab 100644 --- a/03/GearRatios.Tests/GearRatios.Tests.csproj +++ b/03/GearRatios.Tests/GearRatios.Tests.csproj @@ -27,4 +27,10 @@ + + + PreserveNewest + + + diff --git a/03/GearRatios.Tests/PuzzleSolverTests.cs b/03/GearRatios.Tests/PuzzleSolverTests.cs index 74c000e..5ad3dfd 100644 --- a/03/GearRatios.Tests/PuzzleSolverTests.cs +++ b/03/GearRatios.Tests/PuzzleSolverTests.cs @@ -36,6 +36,8 @@ public class PuzzleSolverTests ".664.598..", ]; + private static readonly string[] Input = File.ReadAllLines("INPUT.txt"); + public static IEnumerable SumGearRatios => new List { @@ -44,6 +46,11 @@ public class PuzzleSolverTests TestSchematic, 467835, }, + new object[] + { + Input, + 81997870, + } }; public static IEnumerable SumPartNumbersData => @@ -84,6 +91,11 @@ public class PuzzleSolverTests "........375...%.........*......450.456.$.........714........851.327..#...+......*...+.......179.630....854.................................*", }, 11612 + }, + new object[] + { + Input, + 550934, } }; }