Added a complex query to the test_malformed test of the QueryKeywordParserTestCase test case.

This commit is contained in:
依瑪貓 2023-02-04 14:54:32 +08:00
parent b07b0e3be4
commit b7dd53d2f9

View File

@ -111,6 +111,8 @@ class QueryKeywordParserTestCase(unittest.TestCase):
["coffee", "tea cake"])
self.assertEqual(parse_query_keywords("coffee te\"a ca\"ke"),
["coffee", "te\"a", "ca\"ke"])
self.assertEqual(parse_query_keywords("coffee\" tea cake\""),
["coffee\"", "tea", "cake\""])
def test_empty(self) -> None:
"""Tests the empty query.