@@ -0,0 +1,1156 @@
+package com.jwetherell.algorithms.strings.test;%0A%0Aimport com.jwetherell.algorithms.strings.StringInformations;%0Aimport org.junit.Test;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class StringInformationTest %7B%0A%0A    @Test%0A    public void getPrefixSuffixes() throws Exception %7B%0A        List%3CObject%5B%5D%3E data = Arrays.asList(new Object%5B%5D%5B%5D%7B%0A                %7B%22%22, new ArrayList%3CInteger%3E()%7D,%0A                %7B%22a%22, Arrays.asList(0)%7D,%0A                %7B%22aaa%22, Arrays.asList(0, 1, 2)%7D,%0A                %7B%22abbabb%22, Arrays.asList(0, 0, 0, 1, 2, 3)%7D,%0A                %7B%22bbabbbbaab%22, Arrays.asList(0, 1, 0, 1, 2, 2, 2, 3, 0, 1)%7D,%0A                %7B%0A                    %22( %CD%A1%C2%B0 %CD%9C%CA%96 %CD%A1%C2%B0 )( %CD%A1%C2%B0 a( %CD%A1%C2%B0 %CD%9C%CA%96 %CD%A1%C2%B0%22,%0A                     Arrays.asList(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)%0A                %7D%0A        %7D);%0A        for(Object%5B%5D testCase: data) %7B%0A            String input = (String) testCase%5B0%5D;%0A            List%3CInteger%3E expected = (List%3CInteger%3E) testCase%5B1%5D;%0A            assertEquals(expected, StringInformations.getPrefSufTable(input));%0A        %7D%0A    %7D%0A%0A%7D

Test for finding prefix-suffix table