@@ -0,0 +1,1154 @@
+package com.wizzardo.tools.io;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A/**%0A * Created by wizzardo on 18.01.16.%0A */%0Apublic class BoyerMooreTest %7B%0A%0A    @Test%0A    public void test() %7B%0A        byte%5B%5D needle = new byte%5B2%5D;%0A        byte%5B%5D data = new byte%5B15%5D;%0A        for (int i = 0; i %3C 256; i++) %7B%0A            for (int j = 0; j %3C 256; j++) %7B%0A                if (i == 0 && j == 0)%0A                    continue;%0A%0A                needle%5B0%5D = (byte) i;%0A                needle%5B1%5D = (byte) j;%0A%0A                System.arraycopy(needle, 0, data, 0, 2);%0A                System.arraycopy(needle, 0, data, 3, 2);%0A                System.arraycopy(needle, 0, data, 7, 2);%0A                System.arraycopy(needle, 0, data, 13, 2);%0A%0A                BoyerMoore boyerMoore = new BoyerMoore(needle);%0A%0A                Assert.assertEquals(0, boyerMoore.search(data, 0, data.length));%0A                Assert.assertEquals(3, boyerMoore.search(data, 2, data.length));%0A                Assert.assertEquals(7, boyerMoore.search(data, 5, data.length - 5));%0A                Assert.assertEquals(13, boyerMoore.search(data, 9, data.length - 9));%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

add simple test