Leon 6 lat temu
rodzic
commit
8725c160c5

+ 3
- 3
src/test/java/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.java Wyświetl plik

109
     public void getTheMiddleChar1(){
109
     public void getTheMiddleChar1(){
110
         // : Given
110
         // : Given
111
         String input = "Zipcode";
111
         String input = "Zipcode";
112
-        char expected = 'c';
112
+        Character expected = 'c';
113
 
113
 
114
         // : When
114
         // : When
115
-        char actual = StringUtilities.getMiddleCharacter(input);
115
+        Character actual = StringUtilities.getMiddleCharacter(input);
116
 
116
 
117
         // : Then
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 Wyświetl plik


BIN
target/test-classes/com/zipcodewilmington/danny_do_better_exercises/TestMathUtilities.class Wyświetl plik


BIN
target/test-classes/com/zipcodewilmington/danny_do_better_exercises/TestPredicateUtilities.class Wyświetl plik


BIN
target/test-classes/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.class Wyświetl plik