Skip to content

Commit 2e8d972

Browse files
authored
Merge branch 'TheAlgorithms:master' into test
2 parents cb349dd + 8e8d11a commit 2e8d972

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.thealgorithms.maths;
2+
3+
4+
import org.junit.jupiter.api.Test;
5+
import static org.junit.jupiter.api.Assertions.assertEquals;
6+
7+
public class FindMinTest {
8+
@Test
9+
public void test1(){
10+
assertEquals(1, FindMin.findMin(new int[] {1, 3, 5, 7, 9}));
11+
}
12+
13+
@Test
14+
public void test2(){
15+
assertEquals(0, FindMin.findMin(new int[] {0, 192, 384, 576}));
16+
}
17+
}

0 commit comments

Comments
 (0)