Add more tests for findMin (#3102)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
This commit is contained in:
parent
8e8d11a63c
commit
9b4ac70403
@ -1,10 +1,14 @@
|
||||
package com.thealgorithms.maths;
|
||||
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
public class FindMinTest {
|
||||
@Test
|
||||
public void testFindMinValue(){
|
||||
assertEquals(1, FindMin.findMin(new int[] {1,2,3,4,5,6,7,8,9,10}));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test1(){
|
||||
assertEquals(1, FindMin.findMin(new int[] {1, 3, 5, 7, 9}));
|
||||
|
Loading…
Reference in New Issue
Block a user