-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9e6598
commit 051f2b6
Showing
2 changed files
with
8 additions
and
36 deletions.
There are no files selected for viewing
26 changes: 0 additions & 26 deletions
26
src/test/java/com/fishercoder/firstthousand/_1985Test.java
This file was deleted.
Oops, something went wrong.
18 changes: 8 additions & 10 deletions
18
src/test/java/com/fishercoder/secondthousand/_1985Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
package com.fishercoder.secondthousand; | ||
|
||
import com.fishercoder.solutions.secondthousand._1985; | ||
import org.junit.BeforeClass; | ||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.BeforeEach; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class _1985Test { | ||
private static _1985.Solution1 solution1; | ||
|
||
@BeforeClass | ||
public static void setup() { | ||
@BeforeEach | ||
public void setup() { | ||
solution1 = new _1985.Solution1(); | ||
} | ||
|
||
@Test | ||
@org.junit.jupiter.api.Test | ||
public void test1() { | ||
assertEquals("3", solution1.kthLargestNumber(new String[]{"3", "6", "7", "10"}, 4)); | ||
Assertions.assertEquals("3", solution1.kthLargestNumber(new String[]{"3", "6", "7", "10"}, 4)); | ||
} | ||
|
||
@Test | ||
public void test2() { | ||
assertEquals("6", solution1.kthLargestNumber(new String[]{"3", "6", "7", "10", "8", "1", "5"}, 4)); | ||
Assertions.assertEquals("2", solution1.kthLargestNumber(new String[]{"2", "21", "12", "1"}, 3)); | ||
} | ||
|
||
} |