public void Test2FromExample() { var day = new Day18(); Assert.AreEqual(51ul, day.Solve2(new [] { "1 + (2 * 3) + (4 * (5 + 6))" })); Assert.AreEqual(46ul, day.Solve2(new [] { "2 * 3 + (4 * 5)" })); Assert.AreEqual(1445ul, day.Solve2(new [] { "5 + (8 * 3 + 9 + 3 * 4 * 3)" })); Assert.AreEqual(669060ul, day.Solve2(new [] { "5 * 9 * (7 * 3 * 3 + 9 * 3 + (8 + 6 * 4))" })); Assert.AreEqual(23340ul, day.Solve2(new [] { "((2 + 4 * 9) * (6 + 9 * 8 + 6) + 6) + 2 + 4 * 2" })); }
public void Test2PuzzleInput() { var day = new Day18(); Assert.AreEqual( 290726428573651ul, day.Solve2(Day18.PUZZLE_INPUT)); }