package com.fishercoder;

import com.fishercoder.solutions._394;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
 * Created by varunu28 on 1/08/19.
 */

public class _394Test {
    private static _394.Solution1 test;

    public static void setUp() {
        test = new _394.Solution1();
    }

    @Test
    public void test1() {
        assertEquals("aaabcbc", test.decodeString("3[a]2[bc]"));
    }

    @Test
    public void test2() {
        assertEquals("accaccacc", test.decodeString("3[a2[c]]"));
    }

    @Test
    public void test3() {
        assertEquals("abcabccdcdcdef", test.decodeString("2[abc]3[cd]ef"));
    }
}

@@ -58,16 +58,46 @@
 s._394;%0A
+import org.junit.BeforeClass;%0A
 import o
@@ -226,18 +226,16 @@
 4Test %7B%0A
-  
   privat
@@ -267,16 +267,29 @@
 est;%0A%0A  
+@BeforeClass%0A
   public
@@ -307,28 +307,24 @@
 d setUp() %7B%0A
-    
     test = n
@@ -342,39 +342,35 @@
 ution1();%0A  
- 
- 
 %7D%0A%0A
-  
   @Test%0A
     public v
@@ -349,34 +349,32 @@
 );%0A  %7D%0A%0A  @Test%0A
-  
   public void te
@@ -377,36 +377,32 @@
 d test1() %7B%0A    
- 
-   
 assertEquals(%22aa
@@ -442,35 +442,29 @@
 bc%5D%22));%0A
-  
   %7D%0A%0A  
- 
- 
 @Test%0A
-  
   public
@@ -475,28 +475,24 @@
 d test2() %7B%0A
-    
     assertEq
@@ -545,27 +545,21 @@
 ));%0A
-  
   %7D%0A%0A  
- 
- 
 @Test%0A
-  
   pu
@@ -578,20 +578,16 @@
 st3() %7B%0A
-    
     asse
@@ -650,16 +650,14 @@
 %5Def%22));%0A
-  
   %7D%0A%7D%0A

fix build