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

Commit ed6cf34

Browse files
[LEET-1233] add 1233
1 parent 400b0d3 commit ed6cf34

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

‎src/test/java/com/fishercoder/secondthousand/_1233Test.java‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
package com.fishercoder.secondthousand;
22

3+
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;
4+
35
import com.fishercoder.solutions.secondthousand._1233;
6+
import java.util.ArrayList;
47
import org.junit.jupiter.api.BeforeEach;
58
import org.junit.jupiter.api.Test;
69

7-
import java.util.ArrayList;
8-
9-
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;
10-
1110
public class _1233Test {
1211
private _1233.Solution1 solution1;
1312
private static String[] folder;
@@ -19,7 +18,7 @@ public void setup() {
1918

2019
@Test
2120
public void test1() {
22-
folder = new String[]{"/a", "/a/b", "/c/d", "/c/d/e", "/c/f"};
21+
folder = new String[]{"/a", "/a/b", "/c/d", "/c/d/e", "/c/f"};
2322
ArrayList expected = new ArrayList();
2423
expected.add("/a");
2524
expected.add("/c/d");
@@ -29,7 +28,7 @@ public void test1() {
2928

3029
@Test
3130
public void test2() {
32-
folder = new String[]{"/a", "/a/b/c", "/a/b/d"};
31+
folder = new String[]{"/a", "/a/b/c", "/a/b/d"};
3332
ArrayList expected = new ArrayList();
3433
expected.add("/a");
3534
assertThat(expected).hasSameElementsAs(solution1.removeSubfolders(folder));

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /