feat: solve part 1 and part 2 of puzzle 6

This commit is contained in:
Stevan Freeborn
2023-12-06 20:21:11 -06:00
parent 443e7385fd
commit 6462fd8027
6 changed files with 201 additions and 12 deletions
+16
View File
@@ -0,0 +1,16 @@
namespace WaitForIt.Tests;
public class ProgramTests
{
public void Main_WhenGivenInput_ItShouldReturnTheProductOfTheMarginOfErrors()
{
var result = Program.Main(["INPUT.txt"]);
result.Should().Be(1710720);
}
public void Main_WhenGivenInputAndPart2_ItShouldReturnTheNumberOfWaysToWin()
{
var result = Program.Main(["INPUT.txt", "part2"]);
result.Should().Be(35349468);
}
}