Mercurial > hg > th-libs
changeset 267:03c327ff9203
More tests.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 17 Feb 2016 13:44:57 +0200 |
parents | 3a020aa05f28 |
children | 5cbf24411c02 |
files | tests.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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