summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-08-08 14:35:09 -0400
committerJakob Kaivo <jkk@ung.org>2019-08-08 14:35:09 -0400
commit65519c2e499e152853d31ead97f2e9aacec8ce8e (patch)
tree860bf1f28e4ec40ed922ab521afb91cb246b530b
parentc5d8e6b22660ad302df20efd9c4fc890c281e680 (diff)
add correct values
-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();
}