]> gitweb.factorcode.org Git - factor.git/blob - extra/boyer-moore/boyer-moore-tests.factor
interpolate: split out format into a hook
[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
5 { 0 } [ "qwerty" "" search ] unit-test
6 { 0 } [ "" "" search ] unit-test
7 { f } [ "qw" "qwerty" search ] unit-test
8 { 3 } [ "qwerty" "r" search ] unit-test
9 { 8 } [ "qwerasdfqwer" 2 "qwe" search-from ] unit-test