public void IsPeakElement_BoundaryCases() { var matrix = GetMatrix0(); // The value 9 in position [0,0] is a peak Assert.AreEqual(true, PeakFinder2D.IsPeakElement(matrix, 0, 0)); }
public void IsPeakElement_NoBoundaryCases() { var matrix = GetMatrix0(); // The value 9 in position [2,2] is a peak Assert.AreEqual(true, PeakFinder2D.IsPeakElement(matrix, 2, 2)); // The value 6 in position [5,4] is a peak Assert.AreEqual(true, PeakFinder2D.IsPeakElement(matrix, 5, 4)); // The value 9 in position [1, 5] is a peak Assert.AreEqual(true, PeakFinder2D.IsPeakElement(matrix, 1, 5)); }