AIO commit
Sorry for the late commit, forgot to commit and push it on Saturday 7th. Thank god there are moodle reminders
This commit is contained in:
parent
3083dbce7f
commit
2e6b418fef
24 changed files with 5790 additions and 1 deletions
24
AdventOfCode/AdventOfCode.Test/Day7Test.cs
Normal file
24
AdventOfCode/AdventOfCode.Test/Day7Test.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
namespace AdventOfCode.Test;
|
||||
|
||||
public sealed class Day7Test
|
||||
{
|
||||
private string input = "190: 10 19\r\n3267: 81 40 27\r\n83: 17 5\r\n156: 15 6\r\n7290: 6 8 6 15\r\n161011: 16 10 13\r\n192: 17 8 14\r\n21037: 9 7 18 13\r\r\n292: 11 6 16 20";
|
||||
|
||||
[Fact]
|
||||
public void TestPart1()
|
||||
{
|
||||
const int Expected = 3749;
|
||||
|
||||
var day = new Day7();
|
||||
Assert.Equal(Expected, day.Part1(input));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TestPart2()
|
||||
{
|
||||
const int Expected = 11387;
|
||||
|
||||
var day = new Day7();
|
||||
Assert.Equal(Expected, day.Part2(input));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue