Skip to content

Commit da5fe4e

Browse files
committed
added to DD8
1 parent afcc221 commit da5fe4e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
0 Bytes
Binary file not shown.

TeachingKidsProgramming/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)