Browse Source

updated tests

Leon 6 years ago
parent
commit
8725c160c5

+ 3
- 3
src/test/java/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.java View File

@@ -109,13 +109,13 @@ public class TestStringUtilities {
109 109
     public void getTheMiddleChar1(){
110 110
         // : Given
111 111
         String input = "Zipcode";
112
-        char expected = 'c';
112
+        Character expected = 'c';
113 113
 
114 114
         // : When
115
-        char actual = StringUtilities.getMiddleCharacter(input);
115
+        Character actual = StringUtilities.getMiddleCharacter(input);
116 116
 
117 117
         // : Then
118
-        Assert.assertEquals(expected, actual);
118
+        Assert.assertEquals(expected.toString(), actual.toString());
119 119
     }
120 120
 
121 121
 

BIN
target/classes/com/zipcodewilmington/danny_do_better_exercises/StringUtilities.class View File


BIN
target/test-classes/com/zipcodewilmington/danny_do_better_exercises/TestMathUtilities.class View File


BIN
target/test-classes/com/zipcodewilmington/danny_do_better_exercises/TestPredicateUtilities.class View File


BIN
target/test-classes/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.class View File