diff options
author | Ben Harris <ben@tilde.team> | 2021-12-13 01:20:33 -0500 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2021-12-13 01:20:33 -0500 |
commit | 5adf034e6ea7e99e668174d6db227d1da01798bb (patch) | |
tree | f3cf5cb0ff69e62f9302e4848ea92c79c3742a12 /aoc2021.test | |
parent | 18a5d9aae31839ba4bf64a38922d6e4b4459151a (diff) |
day 13
Diffstat (limited to 'aoc2021.test')
-rw-r--r-- | aoc2021.test/DayTests.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/aoc2021.test/DayTests.cs b/aoc2021.test/DayTests.cs index 04b9d4f..4b27888 100644 --- a/aoc2021.test/DayTests.cs +++ b/aoc2021.test/DayTests.cs @@ -3,6 +3,23 @@ namespace aoc2021.test; [TestClass] public class DayTests { + private const string Day13Actual = @" +████▒███▒▒████▒▒██▒▒█▒▒█▒▒██▒▒█▒▒█▒█▒▒█ +█▒▒▒▒█▒▒█▒▒▒▒█▒█▒▒█▒█▒█▒▒█▒▒█▒█▒▒█▒█▒▒█ +███▒▒█▒▒█▒▒▒█▒▒█▒▒▒▒██▒▒▒█▒▒▒▒████▒█▒▒█ +█▒▒▒▒███▒▒▒█▒▒▒█▒██▒█▒█▒▒█▒▒▒▒█▒▒█▒█▒▒█ +█▒▒▒▒█▒▒▒▒█▒▒▒▒█▒▒█▒█▒█▒▒█▒▒█▒█▒▒█▒█▒▒█ +████▒█▒▒▒▒████▒▒███▒█▒▒█▒▒██▒▒█▒▒█▒▒██▒ +"; + + private const string Day13Test = @" +█████ +█▒▒▒█ +█▒▒▒█ +█▒▒▒█ +█████ +"; + [DataTestMethod] [DataRow(typeof(Day01), "1616", "1645")] [DataRow(typeof(Day02), "2272262", "2134882034")] @@ -16,6 +33,7 @@ public class DayTests [DataRow(typeof(Day10), "288291", "820045242")] [DataRow(typeof(Day11), "1613", "510")] [DataRow(typeof(Day12), "4549", "120535")] + [DataRow(typeof(Day13), "837", Day13Actual)] public void CheckAllDays(Type dayType, string part1, string part2) { var s = Stopwatch.StartNew(); @@ -58,6 +76,7 @@ public class DayTests [DataRow(typeof(Day10), "26397", "288957")] [DataRow(typeof(Day11), "1656", "195")] [DataRow(typeof(Day12), "226", "3509")] + [DataRow(typeof(Day13), "17", Day13Test)] public void CheckTestInputs(Type dayType, string part1, string part2) { Day.UseTestInput = true; |