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