package com.scottbezek.difflib;

import org.junit.Test;

import java.util.Arrays;
import java.util.List;
import java.util.Locale;

import static org.junit.Assert.assertEquals;

public class UnicodeUtilTest {

    @Test
    public void testSplitNaturalCharactersSimple() throws Exception {
        List<String> expected = Arrays.asList("a", "b", "c");
        assertEquals(expected, UnicodeUtil.splitNaturalCharacters("abc", Locale.US));
    }

    @Test
    public void testSplitNaturalCharactersAccent() throws Exception {
        List<String> expected = Arrays.asList("a", "a\u0301", "c");
        assertEquals(expected, UnicodeUtil.splitNaturalCharacters("aa\u0301c", Locale.US));
    }
}

@@ -75,16 +75,46 @@
 Arrays;%0A
+import java.util.Collections;%0A
 import j
@@ -232,16 +232,465 @@
 Test %7B%0A%0A
+    @Test%0A    public void testSplitNaturalCharactersEmpty() throws Exception %7B%0A        List%3CString%3E expected = Collections.emptyList();%0A        assertEquals(expected, UnicodeUtil.splitNaturalCharacters(%22%22, Locale.US));%0A    %7D%0A%0A    @Test%0A    public void testSplitNaturalCharactersSingle() throws Exception %7B%0A        List%3CString%3E expected = Arrays.asList(%22a%22);%0A        assertEquals(expected, UnicodeUtil.splitNaturalCharacters(%22a%22, Locale.US));%0A    %7D%0A%0A
     @Tes

Add a couple more splitNaturalCharacters tests