We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 117ac20 commit 0c49319Copy full SHA for 0c49319
1 file changed
src/org/teachingkidsprogramming/section08tdd/DeepDive08TDD.java
@@ -56,6 +56,17 @@ public void stringsCanBeReversedInStringBuilder() throws Exception
56
String result = sb.toString();
57
Assert.assertEquals(___, result);
58
}
59
+ @Test
60
+ public void numbersCanBeStrings() throws Exception
61
+ {
62
+ StringBuilder sb = new StringBuilder();
63
+ for (int i = 97; i <= 99; i++)
64
65
+ sb.append(convertArray(i));
66
+ }
67
+ String result = sb.toString();
68
+ Assert.assertEquals(___, result);
69
70
/**
71
* Ignore the following, It's needed to run the homework
72
*
@@ -82,4 +93,8 @@ private Cursor getCursor()
82
93
Cursor cursor = Tortoise.getBackgroundWindow().getCursor();
83
94
return cursor;
84
95
96
+ public static String convertArray(int i)
97
98
+ return " " + i;
99
85
100
0 commit comments