From 547ebaece0bcd24857cecd6c95d8a5c1c41ce222 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 4 Feb 2014 18:44:07 +0000 Subject: [PATCH] Bug 11619: (follow-up) fix QueryParser.t The previous patch did not account for the change in the number of indexes, and thus caused one of the tests to fail. To test: [1] Verify that prove -v t/QueryParser.t passes. Signed-off-by: Galen Charlton --- t/QueryParser.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/QueryParser.t b/t/QueryParser.t index 41782f2fe4..371e2b170e 100644 --- a/t/QueryParser.t +++ b/t/QueryParser.t @@ -17,7 +17,7 @@ ok(defined $QParser, 'Successfully created empty QP object'); ok($QParser->load_config('./etc/searchengine/queryparser.yaml'), 'Loaded QP config'); is($QParser->search_class_count, 4, 'Initialized 4 search classes'); -is (scalar(@{$QParser->search_fields()->{'keyword'}}), 107, "Correct number of search fields for 'keyword' class"); +is (scalar(@{$QParser->search_fields()->{'keyword'}}), 108, "Correct number of search fields for 'keyword' class"); is($QParser->target_syntax('biblioserver', 'smith'), '@or @or @attr 1=1016 @attr 4=6 "smith" @attr 9=20 @attr 2=102 @attr 4=6 "smith" @attr 9=34 @attr 2=102 @attr 4=6 "smith"', 'super simple keyword query'); is($QParser->target_syntax('biblioserver', 'au:smith'), '@attr 1=1003 @attr 4=6 "smith"', 'simple author query'); -- 2.39.2