Skip to content

Commit 9b4ac70

Browse files
Add more tests for findMin (TheAlgorithms#3102)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
1 parent 8e8d11a commit 9b4ac70

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/java/com/thealgorithms/maths/FindMinTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
package com.thealgorithms.maths;
22

3-
43
import org.junit.jupiter.api.Test;
54
import static org.junit.jupiter.api.Assertions.assertEquals;
65

76
public class FindMinTest {
7+
@Test
8+
public void testFindMinValue(){
9+
assertEquals(1, FindMin.findMin(new int[] {1,2,3,4,5,6,7,8,9,10}));
10+
}
11+
812
@Test
913
public void test1(){
1014
assertEquals(1, FindMin.findMin(new int[] {1, 3, 5, 7, 9}));

0 commit comments

Comments
 (0)