third-party libs
This commit is contained in:
parent
f836927d3a
commit
b154ee9266
3667 changed files with 854591 additions and 0 deletions
36
third-party/curl-7.21.4/tests/unit/unit1301.c
vendored
Normal file
36
third-party/curl-7.21.4/tests/unit/unit1301.c
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#include <stdlib.h>
|
||||
#include "curl_config.h"
|
||||
#include "setup.h"
|
||||
|
||||
#include "strequal.h"
|
||||
#include "curlcheck.h"
|
||||
|
||||
static CURLcode unit_setup( void ) {return CURLE_OK;}
|
||||
static void unit_stop( void ) {}
|
||||
|
||||
UNITTEST_START
|
||||
|
||||
int rc;
|
||||
|
||||
rc = curl_strequal("iii", "III");
|
||||
fail_unless( rc != 0 , "return code should be zero" );
|
||||
|
||||
rc = curl_strequal("iiia", "III");
|
||||
fail_unless( rc == 0 , "return code should be zero" );
|
||||
|
||||
rc = curl_strequal("iii", "IIIa");
|
||||
fail_unless( rc == 0 , "return code should be zero" );
|
||||
|
||||
rc = curl_strequal("iiiA", "IIIa");
|
||||
fail_unless( rc != 0 , "return code should be non-zero" );
|
||||
|
||||
rc = curl_strnequal("iii", "III", 3);
|
||||
fail_unless( rc != 0 , "return code should be non-zero" );
|
||||
|
||||
rc = curl_strnequal("iiiABC", "IIIcba", 3);
|
||||
fail_unless( rc != 0 , "return code should be non-zero" );
|
||||
|
||||
rc = curl_strnequal("ii", "II", 3);
|
||||
fail_unless( rc != 0 , "return code should be non-zero" );
|
||||
|
||||
UNITTEST_STOP
|
||||
Loading…
Add table
Add a link
Reference in a new issue