tests: add tests for GearRatios challenge for actual puzzle input
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user