diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-08-08 14:35:09 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-08-08 14:35:09 -0400 |
commit | 65519c2e499e152853d31ead97f2e9aacec8ce8e (patch) | |
tree | 860bf1f28e4ec40ed922ab521afb91cb246b530b | |
parent | c5d8e6b22660ad302df20efd9c4fc890c281e680 (diff) |
add correct values
-rw-r--r-- | wchar.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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(); } |