File tree Expand file tree Collapse file tree 1 file changed +22
-20
lines changed
src/test/java/com/fishercoder Expand file tree Collapse file tree 1 file changed +22
-20
lines changed Original file line number Diff line number Diff line change 1
1
package com .fishercoder ;
2
2
3
3
import com .fishercoder .solutions ._394 ;
4
+ import org .junit .BeforeClass ;
4
5
import org .junit .Test ;
5
6
6
7
import static org .junit .Assert .assertEquals ;
10
11
*/
11
12
12
13
public class _394Test {
13
- private static _394 .Solution1 test ;
14
-
15
- public static void setUp () {
16
- test = new _394 .Solution1 ();
17
- }
18
-
19
- @ Test
20
- public void test1 () {
21
- assertEquals ("aaabcbc" , test .decodeString ("3[a]2[bc]" ));
22
- }
23
-
24
- @ Test
25
- public void test2 () {
26
- assertEquals ("accaccacc" , test .decodeString ("3[a2[c]]" ));
27
- }
28
-
29
- @ Test
30
- public void test3 () {
31
- assertEquals ("abcabccdcdcdef" , test .decodeString ("2[abc]3[cd]ef" ));
32
- }
14
+ private static _394 .Solution1 test ;
15
+
16
+ @ BeforeClass
17
+ public static void setUp () {
18
+ test = new _394 .Solution1 ();
19
+ }
20
+
21
+ @ Test
22
+ public void test1 () {
23
+ assertEquals ("aaabcbc" , test .decodeString ("3[a]2[bc]" ));
24
+ }
25
+
26
+ @ Test
27
+ public void test2 () {
28
+ assertEquals ("accaccacc" , test .decodeString ("3[a2[c]]" ));
29
+ }
30
+
31
+ @ Test
32
+ public void test3 () {
33
+ assertEquals ("abcabccdcdcdef" , test .decodeString ("2[abc]3[cd]ef" ));
34
+ }
33
35
}
You can’t perform that action at this time.
0 commit comments