Leon před 6 roky
rodič
revize
8725c160c5

+ 3
- 3
src/test/java/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.java Zobrazit soubor

@@ -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ární
target/classes/com/zipcodewilmington/danny_do_better_exercises/StringUtilities.class Zobrazit soubor


binární
target/test-classes/com/zipcodewilmington/danny_do_better_exercises/TestMathUtilities.class Zobrazit soubor


binární
target/test-classes/com/zipcodewilmington/danny_do_better_exercises/TestPredicateUtilities.class Zobrazit soubor


binární
target/test-classes/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.class Zobrazit soubor