]> gitweb.factorcode.org Git - factor.git/blob - extra/boyer-moore/boyer-moore-tests.factor
e444c351898a4c3b077ca80b0a20dae0d99b8d99
[factor.git] / extra / boyer-moore / boyer-moore-tests.factor
1 ! Copyright (C) 2010 Dmitry Shubin.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: tools.test boyer-moore ;
4 IN: boyer-moore.tests
5
6 [ 0 ] [ "qwerty" "" search ] unit-test
7 [ 0 ] [ "" "" search ] unit-test
8 [ f ] [ "qw" "qwerty" search ] unit-test
9 [ 3 ] [ "qwerty" "r" search ] unit-test
10 [ 8 ] [ "qwerasdfqwer" 2 "qwe" search-from ] unit-test