# HG changeset patch # User Matti Hamalainen # Date 1455709497 -7200 # Node ID 03c327ff92035a3b8a2d01adae46993a6e57906b # Parent 3a020aa05f284005a2ef4a591cfc165e190155ef More tests. diff -r 3a020aa05f28 -r 03c327ff9203 tests.c --- a/tests.c Wed Feb 17 13:42:02 2016 +0200 +++ b/tests.c Wed Feb 17 13:44:57 2016 +0200 @@ -214,12 +214,16 @@ TEST2B(th_strcasematch, "abba ABBAkukka lol", "*abbak*", TRUE); TEST2B(th_strcasematch, "abba ABBAkukka lol", "*abbak?", FALSE); TEST2B(th_strcasematch, "abba ABBAkukka lol", "?bba?abba*", TRUE); + TEST2B(th_strmatch, "abba ABBAöökukka lol", "*abbaö?", TRUE); // Tests that test for things that do not work correctly yet // Unicode / multibyte UTF-8 causes problems here + tests_header("Invalid tests"); TEST2(th_strcasecmp, "ÖÄÅ", "öäå", FALSE); // SHOULD match TEST3(th_strncasecmp, "Aäöå", "aöå", 2, TRUE); // should NOT match + TEST2B(th_strmatch, "öriÖRI! lol", "?ri?RI!*", FALSE); // should match + // // Print summary and exit