Skip to content

Commit b1c81ed

Browse files
committed
added to DD8
1 parent e096f0a commit b1c81ed

File tree

2 files changed

+8
-0
lines changed

2 files changed

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

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ public void stringsCanBePartOfStringBuilderAgain() throws Exception
4848
String result = sb.toString();
4949
Assert.assertEquals(___, result);
5050
}
51+
@Test
52+
public void stringsCanBeReversedInStringBuilder() throws Exception
53+
{
54+
StringBuilder sb = new StringBuilder("very happy lady");
55+
sb.reverse();
56+
String result = sb.toString();
57+
Assert.assertEquals(___, result);
58+
}
5159
/**
5260
* Ignore the following, It's needed to run the homework
5361
*

0 commit comments

Comments
 (0)