Skip to content

Commit 051f2b6

Browse files
update 1985 test
1 parent d9e6598 commit 051f2b6

File tree

2 files changed

+8
-36
lines changed

2 files changed

+8
-36
lines changed

Diff for: src/test/java/com/fishercoder/firstthousand/_1985Test.java

-26
This file was deleted.
+8-10
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
package com.fishercoder.secondthousand;
22

33
import com.fishercoder.solutions.secondthousand._1985;
4-
import org.junit.BeforeClass;
5-
import org.junit.Test;
6-
7-
import static org.junit.Assert.assertEquals;
4+
import org.junit.jupiter.api.Assertions;
5+
import org.junit.jupiter.api.BeforeEach;
6+
import org.junit.jupiter.api.Test;
87

98
public class _1985Test {
109
private static _1985.Solution1 solution1;
1110

12-
@BeforeClass
13-
public static void setup() {
11+
@BeforeEach
12+
public void setup() {
1413
solution1 = new _1985.Solution1();
1514
}
1615

17-
@Test
16+
@org.junit.jupiter.api.Test
1817
public void test1() {
19-
assertEquals("3", solution1.kthLargestNumber(new String[]{"3", "6", "7", "10"}, 4));
18+
Assertions.assertEquals("3", solution1.kthLargestNumber(new String[]{"3", "6", "7", "10"}, 4));
2019
}
2120

2221
@Test
2322
public void test2() {
24-
assertEquals("6", solution1.kthLargestNumber(new String[]{"3", "6", "7", "10", "8", "1", "5"}, 4));
23+
Assertions.assertEquals("2", solution1.kthLargestNumber(new String[]{"2", "21", "12", "1"}, 3));
2524
}
26-
2725
}

0 commit comments

Comments
 (0)