Browse Source

updated test cases and readme

Leon 6 years ago
parent
commit
f32a14a7c4
1 changed files with 10 additions and 10 deletions
  1. 10
    10
      README.md

+ 10
- 10
README.md View File

@@ -35,7 +35,7 @@
35 35
     String[] array = {"quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog"};
36 36
     
37 37
     // : When
38
-    boolean outcome = StringArrayUtils.getFirstElement(array);
38
+    String outcome = StringArrayUtils.getFirstElement(array);
39 39
     
40 40
     // : Then
41 41
     System.out.println(outcome);
@@ -58,7 +58,7 @@
58 58
     String[] array = {"brown", "fox", "jumps", "over", "the", "lazy", "dog"};
59 59
     
60 60
     // : When
61
-    boolean outcome = StringArrayUtils.getFirstElement(array);
61
+    String outcome = StringArrayUtils.getFirstElement(array);
62 62
     
63 63
     // : Then
64 64
     System.out.println(outcome);
@@ -84,7 +84,7 @@
84 84
     String[] array = {"fox", "jumps", "over", "the", "lazy", "dog"};
85 85
     
86 86
     // : When
87
-    boolean outcome = StringArrayUtils.getFirstElement(array);
87
+    String outcome = StringArrayUtils.getFirstElement(array);
88 88
     
89 89
     // : Then
90 90
     System.out.println(outcome);
@@ -117,7 +117,7 @@
117 117
     String[] array = {"the", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog"};
118 118
     
119 119
     // : When
120
-    boolean outcome = StringArrayUtils.getSecondElement(array);
120
+    String outcome = StringArrayUtils.getSecondElement(array);
121 121
     
122 122
     // : Then
123 123
     System.out.println(outcome);
@@ -139,7 +139,7 @@
139 139
     // : Given
140 140
     String[] array = {"quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog"};    
141 141
     // : When
142
-    boolean outcome = StringArrayUtils.getFirstElement(array);
142
+    String outcome = StringArrayUtils.getFirstElement(array);
143 143
     
144 144
     // : Then
145 145
     System.out.println(outcome);
@@ -164,7 +164,7 @@
164 164
     // : Given
165 165
     String[] array = {"brown", "fox", "jumps", "over", "the", "lazy", "dog"};    
166 166
     // : When
167
-    boolean outcome = StringArrayUtils.getFirstElement(array);
167
+    String outcome = StringArrayUtils.getFirstElement(array);
168 168
     
169 169
     // : Then
170 170
     System.out.println(outcome);
@@ -216,7 +216,7 @@
216 216
     String[] array = {"the", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog"};
217 217
     
218 218
     // : When
219
-    boolean outcome = StringArrayUtils.getLastElement(array);
219
+    String outcome = StringArrayUtils.getLastElement(array);
220 220
     
221 221
     // : Then
222 222
     System.out.println(outcome);
@@ -239,7 +239,7 @@
239 239
     String[] array = {"the", "quick", "brown", "fox", "jumps", "over", "the", "lazy"};
240 240
     
241 241
     // : When
242
-    boolean outcome = StringArrayUtils.getLastElement(array);
242
+    String outcome = StringArrayUtils.getLastElement(array);
243 243
     
244 244
     // : Then
245 245
     System.out.println(outcome);
@@ -265,7 +265,7 @@
265 265
     String[] array = {"the", "quick", "brown", "fox", "jumps", "over"};
266 266
     
267 267
     // : When
268
-    boolean outcome = StringArrayUtils.getLastElement(array);
268
+    String outcome = StringArrayUtils.getLastElement(array);
269 269
     
270 270
     // : Then
271 271
     System.out.println(outcome);
@@ -299,7 +299,7 @@
299 299
     String[] array = {"the", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog"};
300 300
     
301 301
     // : When
302
-    boolean outcome = StringArrayUtils.getSecondToLastElement(array);
302
+    String outcome = StringArrayUtils.getSecondToLastElement(array);
303 303
     
304 304
     // : Then
305 305
     System.out.println(outcome);