Skip to content

Commit e54dbb8

Browse files
authored
Explicitly test that the empty string is not treated specially in two-fer. (exercism#1802)
1 parent 1a4dcab commit e54dbb8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

exercises/two-fer/src/test/java/TwoferTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,16 @@ public void anotherNameGiven() {
3838

3939
assertEquals(expected, twofer.twofer(input));
4040
}
41+
42+
/* Track specific */
43+
44+
@Ignore("Remove to run test")
45+
@Test
46+
public void emptyStringIsNotTheSameAsNull() {
47+
String input = "";
48+
String expected = "One for , one for me.";
49+
50+
assertEquals(expected, twofer.twofer(input));
51+
}
52+
4153
}

0 commit comments

Comments
 (0)