forked from fishercoder1534/Leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_1003Test.java
More file actions
37 lines (29 loc) · 757 Bytes
/
_1003Test.java
File metadata and controls
37 lines (29 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.fishercoder;
import com.fishercoder.solutions._1003;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class _1003Test {
private static _1003.Solution1 solution1;
@BeforeClass
public static void setup() {
solution1 = new _1003.Solution1();
}
@Test
public void test1() {
assertTrue(solution1.isValid("aabcbc"));
}
@Test
public void test2() {
assertTrue(solution1.isValid("abcabcababcc"));
}
@Test
public void test3() {
assertFalse(solution1.isValid("abccba"));
}
@Test
public void test4() {
assertFalse(solution1.isValid("cababc"));
}
}