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

Commitae861eb

Browse files
simplify test
1 parent4b6312f commitae861eb

20 files changed

+18
-91
lines changed

‎src/test/java/com/fishercoder/_291Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
importstaticjunit.framework.TestCase.assertEquals;
88

9-
/**
10-
* Created by stevesun on 6/6/17.
11-
*/
129
publicclass_291Test {
1310
privatestatic_291.Solution1solution1;
1411

‎src/test/java/com/fishercoder/_294Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
importstaticorg.junit.Assert.assertEquals;
88

9-
/**
10-
* Created by stevesun on 5/29/17.
11-
*/
129
publicclass_294Test {
1310
privatestatic_294.Solution1solution1;
1411

‎src/test/java/com/fishercoder/_340Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
importstaticorg.junit.Assert.assertEquals;
88

9-
/**
10-
* Created by stevesun on 6/10/17.
11-
*/
129
publicclass_340Test {
1310
privatestatic_340.Solution1solution1;
1411
privatestatic_340.Solution2solution2;

‎src/test/java/com/fishercoder/_358Test.java

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,27 @@
44
importorg.junit.BeforeClass;
55
importorg.junit.Test;
66

7-
/**
8-
* Created by stevesun on 6/8/17.
9-
*/
107
publicclass_358Test {
118

12-
privatestatic_358.Solution1solution1;
9+
privatestatic_358.Solution1solution1;
1310

14-
@BeforeClass
15-
publicstaticvoidsetup() {
16-
solution1 =new_358.Solution1();
17-
}
11+
@BeforeClass
12+
publicstaticvoidsetup() {
13+
solution1 =new_358.Solution1();
14+
}
1815

19-
@Test
20-
publicvoidtest1() {
21-
System.out.println(solution1.rearrangeString("aabbcc",3));
22-
}
16+
@Test
17+
publicvoidtest1() {
18+
System.out.println(solution1.rearrangeString("aabbcc",3));
19+
}
2320

24-
@Test
25-
publicvoidtest2() {
26-
System.out.println(solution1.rearrangeString("aaabc",3));
27-
}
21+
@Test
22+
publicvoidtest2() {
23+
System.out.println(solution1.rearrangeString("aaabc",3));
24+
}
2825

29-
@Test
30-
publicvoidtest3() {
31-
System.out.println(solution1.rearrangeString("aaadbbcc",2));
32-
}
26+
@Test
27+
publicvoidtest3() {
28+
System.out.println(solution1.rearrangeString("aaadbbcc",2));
29+
}
3330
}

‎src/test/java/com/fishercoder/_459Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
importstaticjunit.framework.TestCase.assertEquals;
88

9-
/**
10-
* Created by stevesun on 6/6/17.
11-
*/
129
publicclass_459Test {
1310
privatestatic_459.Solution1solution1;
1411
privatestatic_459.Solution2solution2;

‎src/test/java/com/fishercoder/_468Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
importstaticorg.junit.Assert.assertEquals;
88

9-
/**
10-
* Created by stevesun on 6/10/17.
11-
*/
129
publicclass_468Test {
1310
privatestatic_468.Solution1solution1;
1411

‎src/test/java/com/fishercoder/_493Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
importstaticorg.junit.Assert.assertEquals;
88

9-
/**
10-
* Created by stevesun on 6/10/17.
11-
*/
129
publicclass_493Test {
1310
privatestatic_493.Solution1solution1;
1411
privatestaticint[]nums;

‎src/test/java/com/fishercoder/_591Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
importstaticorg.junit.Assert.assertEquals;
88

9-
/**
10-
* Created by stevesun on 6/4/17.
11-
*/
129
publicclass_591Test {
1310
privatestatic_591test;
1411

‎src/test/java/com/fishercoder/_604Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
importstaticorg.junit.Assert.assertEquals;
77

8-
/**
9-
* Created by stevesun on 6/10/17.
10-
*/
118
publicclass_604Test {
129
privatestatic_604.StringIteratortest;
1310

‎src/test/java/com/fishercoder/_605Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
importstaticorg.junit.Assert.assertEquals;
88

9-
/**
10-
* Created by stevesun on 6/4/17.
11-
*/
129
publicclass_605Test {
1310
privatestatic_605test;
1411
privatestaticint[]flowerbed;

‎src/test/java/com/fishercoder/_606Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
importstaticorg.junit.Assert.assertEquals;
1212

13-
/**
14-
* Created by stevesun on 6/4/17.
15-
*/
1613
publicclass_606Test {
1714
privatestatic_606.Solution1solution1;
1815
privatestatic_606.Solution2solution2;

‎src/test/java/com/fishercoder/_611Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
importstaticorg.junit.Assert.assertEquals;
88

9-
/**
10-
* Created by stevesun on 6/11/17.
11-
*/
129
publicclass_611Test {
1310
privatestatic_611test;
1411
privatestaticint[]nums;
Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
packagecom.fishercoder;
22

3-
importcom.fishercoder.common.classes.TreeNode;
43
importcom.fishercoder.common.utils.TreeUtils;
54
importcom.fishercoder.solutions._617;
65
importorg.junit.BeforeClass;
@@ -10,15 +9,8 @@
109

1110
importstaticjunit.framework.TestCase.assertEquals;
1211

13-
/**
14-
* Created by stevesun on 6/10/17.
15-
*/
1612
publicclass_617Test {
1713
privatestatic_617.Solution1solution1;
18-
privatestaticTreeNodet1;
19-
privatestaticTreeNodet2;
20-
privatestaticTreeNodeactual;
21-
privatestaticTreeNodeexpected;
2214

2315
@BeforeClass
2416
publicstaticvoidsetup() {
@@ -27,15 +19,7 @@ public static void setup() {
2719

2820
@Test
2921
publicvoidtest1() {
30-
t1 =TreeUtils.constructBinaryTree(Arrays.asList(1,3,2,5));
31-
32-
t2 =TreeUtils.constructBinaryTree(Arrays.asList(2,1,3,null,4,null,7));
33-
34-
expected =TreeUtils.constructBinaryTree(Arrays.asList(3,4,5,5,4,null,7));
35-
36-
actual =solution1.mergeTrees(t1,t2);
37-
38-
assertEquals(expected,actual);
22+
assertEquals(TreeUtils.constructBinaryTree(Arrays.asList(3,4,5,5,4,null,7)),solution1.mergeTrees(TreeUtils.constructBinaryTree(Arrays.asList(1,3,2,5)),TreeUtils.constructBinaryTree(Arrays.asList(2,1,3,null,4,null,7))));
3923
}
4024

4125
}

‎src/test/java/com/fishercoder/_621Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
importstaticorg.junit.Assert.assertEquals;
88

9-
/**
10-
* Created by stevesun on 6/19/17.
11-
*/
129
publicclass_621Test {
1310
privatestatic_621.Solution1solution1;
1411
privatestaticchar[]tasks;

‎src/test/java/com/fishercoder/_631Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
importstaticjunit.framework.TestCase.assertEquals;
77

8-
/**
9-
* Created by stevesun on 7/26/17.
10-
*/
118
publicclass_631Test {
129
privatestatic_631.Excelexcel;
1310

‎src/test/java/com/fishercoder/_645Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
importstaticorg.junit.Assert.assertArrayEquals;
88

9-
/**
10-
* Created by stevesun on 7/23/17.
11-
*/
129
publicclass_645Test {
1310
privatestatic_645test;
1411
privatestaticint[]nums;

‎src/test/java/com/fishercoder/_648Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010
importstaticorg.junit.Assert.assertEquals;
1111

12-
/**
13-
* Created by stevesun on 7/24/17.
14-
*/
1512
publicclass_648Test {
1613
privatestatic_648test;
1714
privatestaticList<String>dict;

‎src/test/java/com/fishercoder/_650Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
importstaticorg.junit.Assert.assertEquals;
88

9-
/**
10-
* Created by stevesun on 7/30/17.
11-
*/
129
publicclass_650Test {
1310
privatestatic_650test;
1411

‎src/test/java/com/fishercoder/_651Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
importstaticorg.junit.Assert.assertEquals;
88

9-
/**
10-
* Created by stevesun on 7/30/17.
11-
*/
129
publicclass_651Test {
1310
privatestatic_651test;
1411

‎src/test/java/com/fishercoder/_652Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212

1313
importstaticorg.junit.Assert.assertEquals;
1414

15-
/**
16-
* Created by stevesun on 7/30/17.
17-
*/
1815
publicclass_652Test {
1916
privatestatic_652test;
2017
privatestaticList<TreeNode>expected;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp