Skip to content

Commit

Permalink
update 1985 test
Browse files Browse the repository at this point in the history
  • Loading branch information
fishercoder1534 committed Aug 6, 2024
1 parent d9e6598 commit 051f2b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 36 deletions.
26 changes: 0 additions & 26 deletions src/test/java/com/fishercoder/firstthousand/_1985Test.java

This file was deleted.

18 changes: 8 additions & 10 deletions src/test/java/com/fishercoder/secondthousand/_1985Test.java
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));
}

}

0 comments on commit 051f2b6

Please sign in to comment.