Skip to content

Commit 803d663

Browse files
committed
Replaced toString with value in unit test.
1 parent 130894c commit 803d663

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/g0001_0100/s0022_generate_parentheses/SolutionTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
import static org.hamcrest.CoreMatchers.equalTo;
44
import static org.hamcrest.MatcherAssert.assertThat;
55

6+
import java.util.Arrays;
67
import org.junit.Test;
78

89
public class SolutionTest {
910
@Test
1011
public void generateParenthesis() {
1112
assertThat(
12-
new Solution().generateParenthesis(3).toString(),
13-
equalTo("[((())), (()()), (())(), ()(()), ()()()]"));
13+
new Solution().generateParenthesis(3),
14+
equalTo(Arrays.asList("((()))", "(()())", "(())()", "()(())", "()()()")));
1415
}
1516
}

0 commit comments

Comments
 (0)