소스 검색

fix the Randall discovery

Kristofer Younger 6 년 전
부모
커밋
0b5546841f
1개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 13
    0
      StringUtilitiesTest.java

+ 13
- 0
StringUtilitiesTest.java 파일 보기

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