changeset 2956:a8809feee20c

search: add failing tests
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 01 Dec 2007 15:50:42 +0100
parents c8a3731ce61c
children bc85e5200dd3
files MoinMoin/search/_tests/test_search.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/_tests/test_search.py	Fri Nov 30 23:41:48 2007 +0100
+++ b/MoinMoin/search/_tests/test_search.py	Sat Dec 01 15:50:42 2007 +0100
@@ -45,6 +45,8 @@
             ("aaa bbb -ccc", '["aaa" "bbb" -"ccc"]'),
             ("title:aaa title:bbb -title:ccc", '[!"aaa" !"bbb" -!"ccc"]'),
             ("aaa or bbb", '["aaa" or "bbb"]'),
+            ("(HelpOn) (Administration)", '["HelpOn" "Administration"]'),
+            ("(HelpOn) (-Administration)", '["HelpOn" -"Administration"]'),
             ]:
             result = parser.parse_query(query)
             assert str(result) == wanted