Add more tests for findMin (#3102)

Co-authored-by: Andrii Siriak <siryaka@gmail.com>
This commit is contained in:
TaiNguyen2001 2022-06-07 12:21:46 +07:00 committed by GitHub
parent 8e8d11a63c
commit 9b4ac70403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}));