feat: solve part 1 and part 2 of puzzle 6
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user