Add tests for findMax (#3067)

This commit is contained in:
Hai Nguyen
2022-05-30 18:11:30 +07:00
committed by GitHub
parent bb5b50dea2
commit e5057defa7

View File

@ -0,0 +1,12 @@
package com.thealgorithms.maths;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class FindMaxTest {
@Test
public void testFindMaxValue(){
assertEquals(10, FindMax.findMax(new int[] {1,2,3,4,5,6,7,8,9,10}));
}
}