Add 1 more test to _isStopword
This commit is contained in:
parent
aa045b7abc
commit
f8f62c5640
1 changed files with 8 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ my $session = WebGUI::Test->session;
|
|||
#----------------------------------------------------------------------------
|
||||
# Tests
|
||||
|
||||
plan tests => 6; # Increment this number for each test you create
|
||||
plan tests => 7; # Increment this number for each test you create
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# put your tests here
|
||||
|
|
@ -37,11 +37,18 @@ use_ok('WebGUI::Search');
|
|||
|
||||
my $search = WebGUI::Search->new($session);
|
||||
|
||||
################################################
|
||||
#
|
||||
# _isStopword
|
||||
#
|
||||
################################################
|
||||
|
||||
ok(! $search->_isStopword('not a stopword'), '_isStopword: not a stopword');
|
||||
ok( $search->_isStopword('the'), '_isStopword: "the" is a stopword');
|
||||
ok( $search->_isStopword('all*'), '_isStopword: regex metacharacter * does not crash the search');
|
||||
ok( $search->_isStopword('anybody+'), '_isStopword: regex metacharacter + does not crash the search');
|
||||
ok( $search->_isStopword('maybe?'), '_isStopword: regex metacharacter ? does not crash the search');
|
||||
ok(! $search->_isStopword('private.+'), '_isStopword: regex metacharacter ? does not crash the search');
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Cleanup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue