mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
unit1301: keep testing curl_strequal
as that is still part of the API, fix from 8fe4bd0844
This commit is contained in:
parent
cce5250f6a
commit
06bc2100d2
@ -30,25 +30,25 @@ UNITTEST_START
|
||||
|
||||
int rc;
|
||||
|
||||
rc = curl_strcasecompare("iii", "III");
|
||||
rc = curl_strequal("iii", "III");
|
||||
fail_unless(rc != 0, "return code should be zero");
|
||||
|
||||
rc = curl_strcasecompare("iiia", "III");
|
||||
rc = curl_strequal("iiia", "III");
|
||||
fail_unless(rc == 0, "return code should be zero");
|
||||
|
||||
rc = curl_strcasecompare("iii", "IIIa");
|
||||
rc = curl_strequal("iii", "IIIa");
|
||||
fail_unless(rc == 0, "return code should be zero");
|
||||
|
||||
rc = curl_strcasecompare("iiiA", "IIIa");
|
||||
rc = curl_strequal("iiiA", "IIIa");
|
||||
fail_unless(rc != 0, "return code should be non-zero");
|
||||
|
||||
rc = curl_strncasecompare("iii", "III", 3);
|
||||
rc = curl_strnequal("iii", "III", 3);
|
||||
fail_unless(rc != 0, "return code should be non-zero");
|
||||
|
||||
rc = curl_strncasecompare("iiiABC", "IIIcba", 3);
|
||||
rc = curl_strnequal("iiiABC", "IIIcba", 3);
|
||||
fail_unless(rc != 0, "return code should be non-zero");
|
||||
|
||||
rc = curl_strncasecompare("ii", "II", 3);
|
||||
rc = curl_strnequal("ii", "II", 3);
|
||||
fail_unless(rc != 0, "return code should be non-zero");
|
||||
|
||||
UNITTEST_STOP
|
||||
|
Loading…
Reference in New Issue
Block a user