public void Test1_4() { var res = Day01.ComputeResultingFrequency(new[] { -1, -2, -3 }); Assert.AreEqual(-6, res); }
public void Test2_2() { var res = Day01.FindCalibrationFrequency(new[] { 1, -1 }); Assert.AreEqual(0, res); }
public void Test1_3() { var res = Day01.ComputeResultingFrequency(new[] { 1, 1, -2 }); Assert.AreEqual(0, res); }
public void Test1_1() { var res = Day01.ComputeResultingFrequency(new[] { 1, -2, 3, 1 }); Assert.AreEqual(3, res); }
public void Test2_5() { var res = Day01.FindCalibrationFrequency(new[] { 7, 7, -2, -7, -4 }); Assert.AreEqual(14, res); }
public void Test2_4() { var res = Day01.FindCalibrationFrequency(new[] { -6, 3, 8, 5, -6 }); Assert.AreEqual(5, res); }
public void Test2_3() { var res = Day01.FindCalibrationFrequency(new[] { 3, 3, 4, -2, -4 }); Assert.AreEqual(10, res); }