From 65519c2e499e152853d31ead97f2e9aacec8ce8e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 8 Aug 2019 14:35:09 -0400 Subject: add correct values --- wchar.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wchar.c b/wchar.c index eb3f817..39a040b 100644 --- a/wchar.c +++ b/wchar.c @@ -14,8 +14,13 @@ void test_wchar_h(void) testing_header("wchar.h"); test_true(NULL == 0); - test_min(WCHAR_MIN, 0); - test_min(WCHAR_MAX, 0); + + if (WCHAR_MIN == 0) { + test_min(WCHAR_MAX, 255); + } else { + test_min(WCHAR_MIN, -127); + test_min(WCHAR_MAX, 127); + } testing_end(); } -- cgit v1.2.1