Skip to content

Commit

Permalink
hello-world: Modify tests to reject name == "" comparison (#280)
Browse files Browse the repository at this point in the history
* hello-world: Modify tests to reject name == "" comparison

* hello-world: Add emptyStringIsComparedByValue() test case
  • Loading branch information
otraczyk authored and jtigger committed Feb 9, 2017
1 parent c5a0aeb commit 03cf979
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exercises/hello-world/src/test/java/HelloWorldTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ public void helloNoName() {
assertEquals("Hello, World!", HelloWorld.hello(null));
}

@Test
@Ignore
public void emptyStringIsComparedByValue() {
assertEquals("Hello, World!", HelloWorld.hello(new String("")));
}

@Test
@Ignore
public void helloSampleName() {
Expand Down

0 comments on commit 03cf979

Please sign in to comment.