Deleted
Added
nxt_utf8_test.c (613:e5dd7bc63d59) | nxt_utf8_test.c (703:2d536dde84d2) |
---|---|
1 2/* 3 * Copyright (C) Igor Sysoev 4 * Copyright (C) NGINX, Inc. 5 */ 6 7#include <nxt_main.h> 8#include "nxt_tests.h" --- 164 unchanged lines hidden (view full) --- 173 } 174 } 175 } 176 } 177 } 178 179 n = nxt_utf8_casecmp((u_char *) "ABC АБВ ΑΒΓ", 180 (u_char *) "abc абв αβγ", | 1 2/* 3 * Copyright (C) Igor Sysoev 4 * Copyright (C) NGINX, Inc. 5 */ 6 7#include <nxt_main.h> 8#include "nxt_tests.h" --- 164 unchanged lines hidden (view full) --- 173 } 174 } 175 } 176 } 177 } 178 179 n = nxt_utf8_casecmp((u_char *) "ABC АБВ ΑΒΓ", 180 (u_char *) "abc абв αβγ", |
181 sizeof("ABC АБВ ΑΒΓ") - 1, 182 sizeof("abc абв αβγ") - 1); | 181 nxt_length("ABC АБВ ΑΒΓ"), 182 nxt_length("abc абв αβγ")); |
183 184 if (n != 0) { 185 nxt_log_alert(thr->log, "nxt_utf8_casecmp() failed"); 186 return NXT_ERROR; 187 } 188 189 nxt_log_error(NXT_LOG_NOTICE, thr->log, "utf8 test passed"); 190 return NXT_OK; 191} | 183 184 if (n != 0) { 185 nxt_log_alert(thr->log, "nxt_utf8_casecmp() failed"); 186 return NXT_ERROR; 187 } 188 189 nxt_log_error(NXT_LOG_NOTICE, thr->log, "utf8 test passed"); 190 return NXT_OK; 191} |