AdventOfCode 2018 Day16 Part1

This commit is contained in:
2023-12-05 03:53:08 +01:00
parent 9c5ba3b215
commit 5e18158a24
5 changed files with 4245 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
namespace AdventOfCode2018.Tests;
public class Day16_Tests
{
[Fact]
public void ResolvePart1__Test1()
{
Day16 day = new();
string result = day.ResolvePart1(new[] {
"Before: [3, 2, 1, 1]",
"9 2 1 2",
"After: [3, 2, 2, 1]",
"",
"Before: [3, 2, 1, 1]",
"9 2 1 2",
"After: [3, 2, 2, 1]",
"",
"",
"Garbage",
});
Assert.Equal("2", result);
}
}