public void AOC2016_18_MakeNextRow(string prevRow, string expectedRow, int expectedCount) { int[] prevRowInt = AOC2016_18.Parse(prevRow); var actual = AOC2016_18.MakeNextRow(prevRowInt); string asStr = AOC2016_18.ReverseParse(actual.Row); asStr.Should().BeEquivalentTo(expectedRow); actual.SafeCount.Should().Be(expectedCount); }
public void AOC2016_18_2_Actual() => Actual(19991126L, x => AOC2016_18.Solve(x, "400000"), "18");
public void AOC2016_18_1_Actual() => Actual(1974L, x => AOC2016_18.Solve(x, "40"), "18");
public void AOC2016_18_1_Sample() => Sample(38L, x => AOC2016_18.Solve(x, "10"), "18");