mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-07 01:35:16 +08:00
Add tests for findMax (#3067)
This commit is contained in:
12
src/test/java/com/thealgorithms/maths/FindMaxTest.java
Normal file
12
src/test/java/com/thealgorithms/maths/FindMaxTest.java
Normal 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}));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user