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

src/test/java/com/fishercoder/firstthousand/_1985Test.java

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 8 additions & 10 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy