libcheck / check

A unit testing framework for C
GNU Lesser General Public License v2.1
1.07k stars 209 forks source link

Add assert functions for wide character and string of wide characters #345

Open kevin2kevin2 opened 1 year ago

kevin2kevin2 commented 1 year ago

General problem

The messages are made in ASCII by using printf or gnu_printf (in the case of #ifdef _WIN32). In consequence, printing a message for wide characters (especially for strings, because the code could print for a single character) requires to go "deep" in the library. To solve this problem, functions could be done for wchar_t and wchar_t* (with wprintf).

Possible basic functions for lambda users