public void Part01_Answer() { // Arrange var input = Day18.ReadInput(); // Act long actual = Day18.Part01(input); // Assert Assert.Equal(1187L, actual); }
public void Day18Part01() { var day = new Day18(); string input = @"set a 1 add a 2 mul a a mod a 5 snd a set a 0 rcv a jgz a -1 set a 1 jgz a -2"; day.Part01(input).Should().Be("4"); }
public void Part01() { // Arrange var input = new[] { "set a 1", "add a 2", "mul a a", "mod a 5", "snd a", "set a 0", "rcv a", "jgz a -1", "set a 1", "jgz a -2" }; // Act long actual = Day18.Part01(input); // Assert Assert.Equal(4L, actual); }