Beispiel #1
0
 public static void TestDay07Part2()
 {
     NUnit.Framework.Assert.AreEqual(1, Day07Solution.GetPart2(new[] { "aba[bab]xyz" }));
     NUnit.Framework.Assert.AreEqual(0, Day07Solution.GetPart2(new[] { "xyx[xyx]xyx" }));
     NUnit.Framework.Assert.AreEqual(1, Day07Solution.GetPart2(new[] { "aaa[kek]eke" }));
     NUnit.Framework.Assert.AreEqual(1, Day07Solution.GetPart2(new[] { "zazbz[bzb]cdb" }));
 }
Beispiel #2
0
 public static void TestDay07Part1()
 {
     NUnit.Framework.Assert.AreEqual(1, Day07Solution.GetPart1(new[] { "abba[mnop]qrst" }));
     NUnit.Framework.Assert.AreEqual(0, Day07Solution.GetPart1(new[] { "abcd[bddb]xyyx" }));
     NUnit.Framework.Assert.AreEqual(0, Day07Solution.GetPart1(new[] { "aaaa[qwer]tyui" }));
     NUnit.Framework.Assert.AreEqual(1, Day07Solution.GetPart1(new[] { "ioxxoj[asdfgh]zxcvbn" }));
 }