예제 #1
0
 public void Test_ProcessIntCodeOutput(string input, string expectedResult) =>
 Assert.AreEqual(
     expectedResult,
     String.Join(",", BoostIntCodeComputer.processIntCode(input.Split(",").Select(long.Parse).ToList(), 0, new List <long>(), new List <long>(), 0)));
예제 #2
0
 public void Test_ProcessIntCodeLength(string input, long expectedResult) =>
 Assert.AreEqual(
     expectedResult,
     BoostIntCodeComputer.processIntCode(input.Split(",").Select(long.Parse).ToList(), 0, new List <long>(), new List <long>(), 0).First().ToString().Length);