package com.fishercoder;

import com.fishercoder.solutions._844;
import org.junit.BeforeClass;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class _844Test {
  private static _844.Solution1 solution1;

  @BeforeClass
  public static void setup() {
    solution1 = new _844.Solution1();
  }

  @Test
  public void test1() {
    assertEquals(true, solution1.backspaceCompare("ab#c", "ad#c"));
  }

  @Test
  public void test2() {
    assertEquals(true, solution1.backspaceCompare("ab##", "c#d#"));
  }

  @Test
  public void test3() {
    assertEquals(true, solution1.backspaceCompare("a##c", "#a#c"));
  }

  @Test
  public void test4() {
    assertEquals(false, solution1.backspaceCompare("a#c", "b"));
  }

}

@@ -182,16 +182,18 @@
 4Test %7B%0A
+  
   privat
@@ -228,16 +228,18 @@
 tion1;%0A%0A
+  
   @Befor
@@ -245,16 +245,18 @@
 reClass%0A
+  
   public
@@ -282,16 +282,20 @@
 ) %7B%0A    
+ 
+   
 solution
@@ -320,29 +320,35 @@
 ion1();%0A
+  
   %7D%0A%0A  
+ 
+ 
 @Test%0A
+  
   public
@@ -359,24 +359,28 @@
 d test1() %7B%0A
+    
     assertEq
@@ -431,37 +431,43 @@
 , %22ad#c%22));%0A
+  
   %7D%0A%0A  
+ 
+ 
 @Test%0A
+  
   public voi
@@ -474,24 +474,28 @@
 d test2() %7B%0A
+    
     assertEq
@@ -546,37 +546,43 @@
 , %22c#d#%22));%0A
+  
   %7D%0A%0A  
+ 
+ 
 @Test%0A
+  
   public voi
@@ -589,32 +589,36 @@
 d test3() %7B%0A    
+   
+ 
 assertEquals(tru
@@ -669,21 +669,27 @@
 ));%0A
+  
   %7D%0A%0A  
+ 
+ 
 @Test%0A
+  
   pu
@@ -704,24 +704,28 @@
 d test4() %7B%0A
+    
     assertEq
@@ -777,15 +777,17 @@
  %22b%22));%0A
+  
   %7D%0A%0A%7D%0A

refactor 844 tst