Lines Matching +full:- +full:3

1 /* Copyright (c) 2015-2018 the Civetweb developers
168 /* options start with a lowercase letter (a-z) */ in START_TEST()
206 ck_assert(mg_strncasecmp("abc", "abc", 3) == 0); in START_TEST()
208 /* equal, since only 3 letters are compared */ in START_TEST()
209 ck_assert(mg_strncasecmp("abc", "abcd", 3) == 0); in START_TEST()
227 ck_assert(mg_strncasecmp("xAx", "xBx", 3) < 0); in START_TEST()
228 ck_assert(mg_strncasecmp("xAx", "xbx", 3) < 0); in START_TEST()
229 ck_assert(mg_strncasecmp("xax", "xBx", 3) < 0); in START_TEST()
230 ck_assert(mg_strncasecmp("xax", "xbx", 3) < 0); in START_TEST()
231 ck_assert(mg_strncasecmp("xbx", "xAx", 3) > 0); in START_TEST()
232 ck_assert(mg_strncasecmp("xBx", "xAx", 3) > 0); in START_TEST()
233 ck_assert(mg_strncasecmp("xbx", "xax", 3) > 0); in START_TEST()
234 ck_assert(mg_strncasecmp("xBx", "xax", 3) > 0); in START_TEST()
248 ck_assert_int_eq(ret, -2); in START_TEST()
252 ck_assert_int_eq(ret, -2); in START_TEST()
256 ck_assert_int_eq(ret, -3); in START_TEST()
260 ck_assert_int_eq(ret, -1); in START_TEST()
263 ck_assert_int_eq(ret, -1); in START_TEST()
266 ret = mg_get_cookie("key1=1; key2=2; key3=3", "notfound", buf, sizeof(buf)); in START_TEST()
267 ck_assert_int_eq(ret, -1); in START_TEST()
271 ret = mg_get_cookie("key1=1; key2=2; key3=3", "key1", buf, sizeof(buf)); in START_TEST()
276 ret = mg_get_cookie("key1=1; key2=2; key3=3", "key2", buf, sizeof(buf)); in START_TEST()
281 ret = mg_get_cookie("key1=1; key2=2; key3=3", "key3", buf, sizeof(buf)); in START_TEST()
283 ck_assert_str_eq("3", buf); in START_TEST()
300 ck_assert_int_eq(ret, -1); in START_TEST()
310 const char *shortquery = "key1=1&key2=2&key3=3"; in START_TEST()
317 ck_assert_int_eq(ret, -2); in START_TEST()
321 ck_assert_int_eq(ret, -2); in START_TEST()
325 /* ck_assert_int_eq(ret, -3); in START_TEST()
326 --> TODO: mg_get_cookie returns -3, mg_get_var -2. This should be in START_TEST()
332 ck_assert_int_eq(ret, -1); in START_TEST()
336 ck_assert_int_eq(ret, -1); in START_TEST()
341 ck_assert_int_eq(ret, -1); in START_TEST()
344 ret = mg_get_var2("key1=1&key2=2&key3=3&notfound=here", in START_TEST()
350 ck_assert_int_eq(ret, -1); in START_TEST()
355 ck_assert_int_eq(ret, -1); in START_TEST()
374 ck_assert_str_eq("3", buf); in START_TEST()
389 /* longer value in the middle of a longer string - seccond occurrence of key in START_TEST()
408 ck_assert_int_eq(ret, -1); in START_TEST()
477 ck_assert_int_eq(3, ret); in START_TEST()
487 ck_assert_int_eq(-1, ret); in START_TEST()
499 ret = mg_url_decode("abc", 3, buf, sizeof(buf), 0); in START_TEST()
500 ck_assert_int_eq(ret, 3); in START_TEST()
504 ret = mg_url_decode("abcdef", 3, buf, sizeof(buf), 0); in START_TEST()
505 ck_assert_int_eq(ret, 3); in START_TEST()
509 ret = mg_url_decode("x+y", 3, buf, sizeof(buf), 0); in START_TEST()
510 ck_assert_int_eq(ret, 3); in START_TEST()
514 ret = mg_url_decode("x+y", 3, buf, sizeof(buf), 1); in START_TEST()
515 ck_assert_int_eq(ret, 3); in START_TEST()
519 ret = mg_url_decode("%25", 3, buf, sizeof(buf), 1); in START_TEST()
546 } else if (resp[j] == '-') { in START_TEST()
549 /* A-Z is valid */ in START_TEST()
551 /* a-z is valid */ in START_TEST()