Skip to content

Commit

Permalink
[LEET-1233] add 1233
Browse files Browse the repository at this point in the history
  • Loading branch information
fishercoder1534 committed Oct 25, 2024
1 parent 400b0d3 commit ed6cf34
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/test/java/com/fishercoder/secondthousand/_1233Test.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package com.fishercoder.secondthousand;

import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;

import com.fishercoder.solutions.secondthousand._1233;
import java.util.ArrayList;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;

import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;

public class _1233Test {
private _1233.Solution1 solution1;
private static String[] folder;
Expand All @@ -19,7 +18,7 @@ public void setup() {

@Test
public void test1() {
folder = new String[]{"/a", "/a/b", "/c/d", "/c/d/e", "/c/f"};
folder = new String[] {"/a", "/a/b", "/c/d", "/c/d/e", "/c/f"};
ArrayList expected = new ArrayList();
expected.add("/a");
expected.add("/c/d");
Expand All @@ -29,7 +28,7 @@ public void test1() {

@Test
public void test2() {
folder = new String[]{"/a", "/a/b/c", "/a/b/d"};
folder = new String[] {"/a", "/a/b/c", "/a/b/d"};
ArrayList expected = new ArrayList();
expected.add("/a");
assertThat(expected).hasSameElementsAs(solution1.removeSubfolders(folder));
Expand Down

0 comments on commit ed6cf34

Please sign in to comment.