diff options
| author | jvoisin | 2023-09-11 17:11:56 +0200 |
|---|---|---|
| committer | jvoisin | 2023-09-11 17:11:56 +0200 |
| commit | 07da6751b9d1a6498e81c9d3b97ec3b552fa0b38 (patch) | |
| tree | 7358ee898b282431d34b3b872eb0240a950d6365 /tests/test_wcsncat_static_write.c | |
| parent | 3df1d6a8d761f5c1a5d423c55f1275248a9ce637 (diff) | |
Add a bunch of wchar_t tests
Diffstat (limited to 'tests/test_wcsncat_static_write.c')
| -rw-r--r-- | tests/test_wcsncat_static_write.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_wcsncat_static_write.c b/tests/test_wcsncat_static_write.c new file mode 100644 index 0000000..812d9fd --- /dev/null +++ b/tests/test_wcsncat_static_write.c | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #include "common.h" | ||
| 2 | |||
| 3 | #include <wchar.h> | ||
| 4 | |||
| 5 | int main(int argc, char** argv) { | ||
| 6 | wchar_t buffer[8] = {0}; | ||
| 7 | wcsncat(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 2); | ||
| 8 | puts(buffer); | ||
| 9 | |||
| 10 | CHK_FAIL_START | ||
| 11 | wcsncat(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 1337); | ||
| 12 | CHK_FAIL_END | ||
| 13 | |||
| 14 | return ret; | ||
| 15 | } | ||
