Skip to content

Commit e096f0a

Browse files
committed
more on DD8
1 parent 11bb6fd commit e096f0a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
0 Bytes
Binary file not shown.

TeachingKidsProgramming/src/org/teachingkidsprogramming/section08tdd/DeepDive08TDD.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
public class DeepDive08TDD
1111
{
1212
// How to do deep dive:
13-
// Step 1: Select the method name (stringsCanBeArrays on line XX) Press the Run Button
13+
// Step 1: Select the method name (stringsCanBeArrays on line 27) Press the Run Button
1414
// PC: Ctrl+F11
1515
// Mac: Command+fn+F11
1616
// Step 2: Read the name of the method that failed
@@ -39,6 +39,15 @@ public void stringsCanBePartOfStringBuilder() throws Exception
3939
String result = sb.toString();
4040
Assert.assertEquals("happy baby", ___);
4141
}
42+
@Test
43+
public void stringsCanBePartOfStringBuilderAgain() throws Exception
44+
{
45+
StringBuilder sb = new StringBuilder();
46+
sb.append("very happy");
47+
sb.append(" lady");
48+
String result = sb.toString();
49+
Assert.assertEquals(___, result);
50+
}
4251
/**
4352
* Ignore the following, It's needed to run the homework
4453
*

0 commit comments

Comments
 (0)