We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f845f commit 05abe8cCopy full SHA for 05abe8c
src/org/teachingkidsprogramming/section08tdd/DeepDive08TDD.java
@@ -67,6 +67,15 @@ public void numbersCanBeStrings() throws Exception
67
String result = sb.toString();
68
Assert.assertEquals(___, result);
69
}
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
+ }
79
/**
80
* Ignore the following, It's needed to run the homework
81
*
0 commit comments