Use the right test with the right comment.
This commit is contained in:
parent
579d3b1df7
commit
736166e2cc
1 changed files with 2 additions and 2 deletions
|
|
@ -71,10 +71,10 @@ ok(! $search->_isStopword('private.+'), '_isStopword: regex metacharacters
|
||||||
WebGUI::Test->tagsToRollback($tag);
|
WebGUI::Test->tagsToRollback($tag);
|
||||||
WebGUI::Search::Index->create( $article );
|
WebGUI::Search::Index->create( $article );
|
||||||
my $searcher = WebGUI::Search->new($session);
|
my $searcher = WebGUI::Search->new($session);
|
||||||
my $assetIds = $searcher->search({ keywords => "甲", })->getAssetIds;
|
my $assetIds = $searcher->search({ keywords => "Chinese", })->getAssetIds;
|
||||||
cmp_deeply( $assetIds, [ $article->getId ], 'basic test for search works');
|
cmp_deeply( $assetIds, [ $article->getId ], 'basic test for search works');
|
||||||
my $searcher = WebGUI::Search->new($session);
|
my $searcher = WebGUI::Search->new($session);
|
||||||
my $assetIds = $searcher->search({ keywords => "Chinese", })->getAssetIds;
|
my $assetIds = $searcher->search({ keywords => "甲", })->getAssetIds;
|
||||||
cmp_deeply( $assetIds, [ $article->getId ], 'ideograph search works');
|
cmp_deeply( $assetIds, [ $article->getId ], 'ideograph search works');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue