File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
TeachingKidsProgramming/src
org/teachingkidsprogramming/section08tdd Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1010public 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 *
You can’t perform that action at this time.
0 commit comments