Skip to content

Commit 117ac20

Browse files
committed
Added to DD8
1 parent 03b7511 commit 117ac20

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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)