Pārlūkot izejas kodu

fix the Randall discovery

Kristofer Younger 6 gadus atpakaļ
vecāks
revīzija
0b5546841f
1 mainītis faili ar 13 papildinājumiem un 0 dzēšanām
  1. 13
    0
      StringUtilitiesTest.java

+ 13
- 0
StringUtilitiesTest.java Parādīt failu

@@ -26,6 +26,19 @@ public class StringUtilitiesTest {
26 26
     }
27 27
     
28 28
     @Test
29
+    public void testGetMiddleCharacter_ForOddWord(){
30
+        //Given
31
+        String word = "disinformations";
32
+        char expected = 'r';
33
+        
34
+        //When
35
+        char actual = utilities.getMiddleCharacter(word);
36
+        
37
+        //Then
38
+        assertEquals(expected, actual);
39
+    }
40
+    
41
+    @Test
29 42
     public void testGetMiddleCharacter_ForEvenWord(){
30 43
         //Given
31 44
         String word = "dogs";