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
29
AdventOfCode/AdventOfCode.Test/Day5Test.cs
Normal file
29
AdventOfCode/AdventOfCode.Test/Day5Test.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
namespace AdventOfCode.Test;
|
||||
|
||||
public sealed class Day5Test
|
||||
{
|
||||
private string input
|
||||
= "47|53\r\n97|13\r\n97|61\r\n97|47\r\n75|29\r\n61|13\r\n75|53\r\n29|13\r\n97|29\r\n53|29\r\n61|53\r\n97|53\r\n61|29\r\n47|13\r\n75|47\r\n97|75\r\n47|61\r\n75|61\r\n47|29\r\n75|13\r\n53|13\r\n\r\n75,47,61,53,29\r\n97,61,53,29,13\r\n75,29,13\r\n75,97,47,61,53\r\n61,13,29\r\n97,13,75,29,47";
|
||||
|
||||
[Fact]
|
||||
public void Part1()
|
||||
{
|
||||
const int Expected = 143;
|
||||
var day5 = new Day5();
|
||||
|
||||
var result = day5.Part1(input);
|
||||
|
||||
Assert.Equal(Expected, result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Part2()
|
||||
{
|
||||
const int Expected = 123;
|
||||
var day5 = new Day5();
|
||||
|
||||
var result = day5.Part2(input);
|
||||
|
||||
Assert.Equal(Expected, result);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue