Skip to content

Commit 05abe8c

Browse files
committed
Added to DD8
1 parent 56f845f commit 05abe8c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/org/teachingkidsprogramming/section08tdd/DeepDive08TDD.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@ public void numbersCanBeStrings() throws Exception
6767
String result = sb.toString();
6868
Assert.assertEquals(___, result);
6969
}
70+
@Test
71+
public void theLineEndsWhenItEnds() throws Exception
72+
{
73+
StringBuilder sb = new StringBuilder("one end ");
74+
sb.append("\n");
75+
sb.append(" another end");
76+
String result = sb.toString();
77+
Assert.assertEquals(___, result);
78+
}
7079
/**
7180
* Ignore the following, It's needed to run the homework
7281
*

0 commit comments

Comments
 (0)