Browse Source

fix the Randall discovery

Kristofer Younger 6 years ago
parent
commit
0b5546841f
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      StringUtilitiesTest.java

+ 13
- 0
StringUtilitiesTest.java View File

26
     }
26
     }
27
     
27
     
28
     @Test
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
     public void testGetMiddleCharacter_ForEvenWord(){
42
     public void testGetMiddleCharacter_ForEvenWord(){
30
         //Given
43
         //Given
31
         String word = "dogs";
44
         String word = "dogs";