package com.matao.chapter01;

public class Q03_UrlifyTest {
}

@@ -27,36 +27,664 @@
 1;%0A%0A
-public class Q03_UrlifyTest %7B
+import org.junit.jupiter.api.Assertions;%0Aimport org.junit.jupiter.api.Test;%0A%0Apublic class Q03_UrlifyTest %7B%0A%0A    @Test%0A    void testNull() %7B%0A        Assertions.assertArrayEquals(null, Q03_Urlify.replaceSpaces(null, 0));%0A    %7D%0A%0A    @Test%0A    void testEmpty() %7B%0A        System.out.println(%22%22.toCharArray().length);%0A        Assertions.assertArrayEquals(%22%22.toCharArray(), Q03_Urlify.replaceSpaces(%22%22.toCharArray(), 0));%0A    %7D%0A%0A    @Test%0A    void test() %7B%0A        String actual = %22Mr John Smith%22;%0A        String expected = %22Mr%2520John%2520Smith%22;%0A        Assertions.assertArrayEquals(expected.toCharArray(), Q03_Urlify.replaceSpaces(actual.toCharArray(), 13));%0A    %7D
 %0A%7D%0A

add test cases for Urlify