public void PrisonCellsTestsHigherInput() { var cells = new PrisonCellsAfterNDays(); var intArray = new int[] { 1, 0, 0, 1, 0, 0, 1, 0 }; var n = 1000000000; var result = cells.PrisonAfterNDays(intArray, n); CollectionAssert.AreEqual(new int[] { 0, 0, 1, 1, 1, 1, 1, 0 }, result); }
public void PrisonCellsTests3() { var cells = new PrisonCellsAfterNDays(); var intArray = new int[] { 0, 0, 1, 0, 0, 1, 0, 0 }; var n = 44640906; var result = cells.PrisonAfterNDays(intArray, n); CollectionAssert.AreEqual(new int[] { 0, 0, 1, 0, 0, 1, 0, 0 }, result); }