]> gitweb.factorcode.org Git - factor.git/blob - extra/boyer-moore/boyer-moore-tests.factor
Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring...
[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