Added a complex query to the test_default test of the QueryKeywordParserTestCase test case.
This commit is contained in:
		| @@ -98,6 +98,9 @@ class QueryKeywordParserTestCase(unittest.TestCase): | |||||||
|         self.assertEqual(parse_query_keywords("coffee tea"), ["coffee", "tea"]) |         self.assertEqual(parse_query_keywords("coffee tea"), ["coffee", "tea"]) | ||||||
|         self.assertEqual(parse_query_keywords("\"coffee\" \"tea cake\""), |         self.assertEqual(parse_query_keywords("\"coffee\" \"tea cake\""), | ||||||
|                          ["coffee", "tea cake"]) |                          ["coffee", "tea cake"]) | ||||||
|  |         self.assertEqual(parse_query_keywords("\"coffee tea\" cheese " | ||||||
|  |                                               "\"cake candy\" sugar"), | ||||||
|  |                          ["coffee tea", "cheese", "cake candy", "sugar"]) | ||||||
|  |  | ||||||
|     def test_malformed(self) -> None: |     def test_malformed(self) -> None: | ||||||
|         """Tests the malformed query. |         """Tests the malformed query. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user