Selaa lähdekoodia

Adds additional test for two-fer exercise

Ilya Khadykin 9 vuotta sitten
vanhempi
commit
6065b40f71
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9
    0
      exercises/two-fer/src/test/java/TwoferTest.java

+ 9
- 0
exercises/two-fer/src/test/java/TwoferTest.java Näytä tiedosto

@@ -38,4 +38,13 @@ public class TwoferTest {
38 38
 
39 39
         assertEquals(expected, twofer.twofer(input));
40 40
     }
41
+
42
+    @Ignore("Remove to run test")
43
+    @Test
44
+    public void emptyStringGiven() {
45
+        String input = "";
46
+        String expected = "One for , one for me.";
47
+
48
+        assertEquals(expected, twofer.twofer(input) );
49
+    }
41 50
 }