From e7c86620bb0c0f8b868d3e4c8dcdebeeffb99631 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 4 May 2026 17:02:12 +0200 Subject: Add a handful of tests --- tests/test_wcstombs_dynamic.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/test_wcstombs_dynamic.c (limited to 'tests/test_wcstombs_dynamic.c') diff --git a/tests/test_wcstombs_dynamic.c b/tests/test_wcstombs_dynamic.c new file mode 100644 index 0000000..6f3962d --- /dev/null +++ b/tests/test_wcstombs_dynamic.c @@ -0,0 +1,16 @@ +#include "common.h" + +#include + +int main(int argc, char** argv) { + char buffer[4] = {0}; + + wcstombs(buffer, L"AB", 2); + + CHK_FAIL_START + wcstombs(buffer, L"ABCDEFGHIJ", argc + 15); + CHK_FAIL_END + + puts(buffer); + return ret; +} -- cgit v1.3