Exemplo n.º 1
0
        public void Test_Part2()
        {
            var input = @"nop +0
acc +1
jmp +4
acc +3
jmp -3
acc -99
acc +1
jmp -4
acc +6";
            var d8    = new Day08();

            d8.DebugInput = input;
            var result = d8.SolvePt2();

            Assert.AreEqual(8, result);
        }
Exemplo n.º 2
0
 public void Puzzle2Test()
 {
     Assert.AreEqual(16653, Day08.Puzzle2(inputDay08));
 }
Exemplo n.º 3
0
 public void Puzzle1Test()
 {
     Assert.AreEqual(41555, Day08.Puzzle1(inputDay08));
 }
Exemplo n.º 4
0
 public void Puzzle2ExampleTest()
 {
     Assert.AreEqual(66, Day08.Puzzle2(inputDay08Example1));
 }
Exemplo n.º 5
0
 public void Puzzle1ExampleTest()
 {
     Assert.AreEqual(138, Day08.Puzzle1(inputDay08Example1));
 }