Lines 17-23
ok(defined $QParser, 'Successfully created empty QP object');
Link Here
|
17 |
ok($QParser->load_config('./etc/searchengine/queryparser.yaml'), 'Loaded QP config'); |
17 |
ok($QParser->load_config('./etc/searchengine/queryparser.yaml'), 'Loaded QP config'); |
18 |
|
18 |
|
19 |
is($QParser->search_class_count, 4, 'Initialized 4 search classes'); |
19 |
is($QParser->search_class_count, 4, 'Initialized 4 search classes'); |
20 |
is (scalar(@{$QParser->search_fields()->{'keyword'}}), 111, "Correct number of search fields for 'keyword' class"); |
20 |
is (scalar(@{$QParser->search_fields()->{'keyword'}}), 121, "Correct number of search fields for 'keyword' class"); |
21 |
|
21 |
|
22 |
# Set keyword search as the default |
22 |
# Set keyword search as the default |
23 |
$QParser->default_search_class('keyword'); |
23 |
$QParser->default_search_class('keyword'); |
24 |
- |
|
|