Mercurial > hg > th-libs
changeset 272:7f01ad43d257
Tests output changes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 17 Feb 2016 14:49:39 +0200 |
parents | 2f067fbf6f13 |
children | 7bea1d5ab944 f875db8634b6 |
files | tests.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests.c Wed Feb 17 14:27:47 2016 +0200 +++ b/tests.c Wed Feb 17 14:49:39 2016 +0200 @@ -214,11 +214,11 @@ 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); + TEST2B(th_strmatch, "abba ABBAöökukka lol", "*abbaö?", FALSE); // Tests that test for things that do not work correctly yet // Unicode / multibyte UTF-8 causes problems here - tests_header("Invalid tests"); + tests_header("Invalid"); TEST2(th_strcasecmp, "ÖÄÅ", "öäå", FALSE); // SHOULD match TEST3(th_strncasecmp, "Aäöå", "aöå", 2, TRUE); // should NOT match @@ -228,8 +228,10 @@ // // Print summary and exit // - THPRINT(0, "%d tests failed, %d passed (%d main tests).\n", - tests_failed, tests_passed, tests_total); + THPRINT(0, + "======================================================\n" + "%d tests failed, %d passed (%d main tests), %d test sets.\n", + tests_failed, tests_passed, tests_total, tests_set); return 0; }