From: Richard Kettlewell Date: Thu, 22 Nov 2007 13:47:35 +0000 (+0000) Subject: further search testing X-Git-Tag: debian-1_5_99dev9~1^2~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/351da565aa79a8ec37b4ad6192cbb53cd99ab953?ds=sidebyside further search testing --- diff --git a/tests/search.py b/tests/search.py index 832a6d9..d92ac06 100755 --- a/tests/search.py +++ b/tests/search.py @@ -53,7 +53,7 @@ def test(): "Joe Bloggs/First Album/05:Fifth track.ogg", "Joe Bloggs/Second Album/01:First track.ogg", "Joe Bloggs/Third Album/01:First_track.ogg"]) - check_search_results(["second"], + check_search_results(["Second"], ["Joe Bloggs/First Album/02:Second track.ogg", "Joe Bloggs/Second Album/01:First track.ogg", "Joe Bloggs/Second Album/02:Second track.ogg", @@ -62,9 +62,17 @@ def test(): "Joe Bloggs/Second Album/05:Fifth track.ogg", "Joe Bloggs/Third Album/02:Second_track.ogg"]) # ASCII Conjunctions - check_search_results(["first", "second"], + check_search_results(["FIRST", "SECOND"], ["Joe Bloggs/First Album/02:Second track.ogg", "Joe Bloggs/Second Album/01:First track.ogg"]) + # Non-ASCII Characters + # 00CC is LATIN CAPITAL LETTER I WITH GRAVE + # 00EC is LATIN SMALL LETTER I WITH GRAVE + check_search_results([u"F\u00CCRST"], + ["Joe Bloggs/First Album/01:F\xC3\x8Crst track.ogg"]) + check_search_results([u"f\u00ECrst"], + ["Joe Bloggs/First Album/01:F\xC3\x8Crst track.ogg"]) + if failures > 0: sys.exit(1)