tests: add tests for GearRatios challenge for actual puzzle input

This commit is contained in:
Stevan Freeborn
2023-12-03 23:22:44 -06:00
parent e3f5aeaa97
commit d50b7c75ca
2 changed files with 18 additions and 0 deletions
@@ -27,4 +27,10 @@
<ProjectReference Include="..\GearRatios\GearRatios.csproj" /> <ProjectReference Include="..\GearRatios\GearRatios.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Include="..\INPUT.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project> </Project>
+12
View File
@@ -36,6 +36,8 @@ public class PuzzleSolverTests
".664.598..", ".664.598..",
]; ];
private static readonly string[] Input = File.ReadAllLines("INPUT.txt");
public static IEnumerable<object[]> SumGearRatios => public static IEnumerable<object[]> SumGearRatios =>
new List<object[]> new List<object[]>
{ {
@@ -44,6 +46,11 @@ public class PuzzleSolverTests
TestSchematic, TestSchematic,
467835, 467835,
}, },
new object[]
{
Input,
81997870,
}
}; };
public static IEnumerable<object?[]> SumPartNumbersData => public static IEnumerable<object?[]> SumPartNumbersData =>
@@ -84,6 +91,11 @@ public class PuzzleSolverTests
"........375...%.........*......450.456.$.........714........851.327..#...+......*...+.......179.630....854.................................*", "........375...%.........*......450.456.$.........714........851.327..#...+......*...+.......179.630....854.................................*",
}, },
11612 11612
},
new object[]
{
Input,
550934,
} }
}; };
} }