Sorry for the late commit, forgot to commit and push it on Saturday 7th. Thank god there are moodle reminders
24 lines
606 B
C#
24 lines
606 B
C#
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));
|
|
}
|
|
}
|