summaryrefslogtreecommitdiff
path: root/wchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'wchar.c')
-rw-r--r--wchar.c9
1 files 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();
}