瀏覽代碼

updated tests

Leon 6 年之前
父節點
當前提交
8725c160c5

+ 3
- 3
src/test/java/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.java 查看文件

@@ -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
 

二進制
target/classes/com/zipcodewilmington/danny_do_better_exercises/StringUtilities.class 查看文件


二進制
target/test-classes/com/zipcodewilmington/danny_do_better_exercises/TestMathUtilities.class 查看文件


二進制
target/test-classes/com/zipcodewilmington/danny_do_better_exercises/TestPredicateUtilities.class 查看文件


二進制
target/test-classes/com/zipcodewilmington/danny_do_better_exercises/TestStringUtilities.class 查看文件