Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit051f2b6

Browse files
update 1985 test
1 parentd9e6598 commit051f2b6

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
packagecom.fishercoder.secondthousand;
22

33
importcom.fishercoder.solutions.secondthousand._1985;
4-
importorg.junit.BeforeClass;
5-
importorg.junit.Test;
6-
7-
importstaticorg.junit.Assert.assertEquals;
4+
importorg.junit.jupiter.api.Assertions;
5+
importorg.junit.jupiter.api.BeforeEach;
6+
importorg.junit.jupiter.api.Test;
87

98
publicclass_1985Test {
109
privatestatic_1985.Solution1solution1;
1110

12-
@BeforeClass
13-
publicstaticvoidsetup() {
11+
@BeforeEach
12+
publicvoidsetup() {
1413
solution1 =new_1985.Solution1();
1514
}
1615

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp