unit1301.c
Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                  _   _ ____  _
00003  *  Project                     ___| | | |  _ \| |
00004  *                             / __| | | | |_) | |
00005  *                            | (__| |_| |  _ <| |___
00006  *                             \___|\___/|_| \_\_____|
00007  *
00008  * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
00009  *
00010  * This software is licensed as described in the file COPYING, which
00011  * you should have received as part of this distribution. The terms
00012  * are also available at https://curl.haxx.se/docs/copyright.html.
00013  *
00014  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00015  * copies of the Software, and permit persons to whom the Software is
00016  * furnished to do so, under the terms of the COPYING file.
00017  *
00018  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00019  * KIND, either express or implied.
00020  *
00021  ***************************************************************************/
00022 #include "curlcheck.h"
00023 
00024 #include "strcase.h"
00025 
00026 static CURLcode unit_setup(void) {return CURLE_OK;}
00027 static void unit_stop(void) {}
00028 
00029 UNITTEST_START
00030 
00031 int rc;
00032 
00033 rc = curl_strequal("iii", "III");
00034 fail_unless(rc != 0, "return code should be zero");
00035 
00036 rc = curl_strequal("iiia", "III");
00037 fail_unless(rc == 0, "return code should be zero");
00038 
00039 rc = curl_strequal("iii", "IIIa");
00040 fail_unless(rc == 0, "return code should be zero");
00041 
00042 rc = curl_strequal("iiiA", "IIIa");
00043 fail_unless(rc != 0, "return code should be non-zero");
00044 
00045 rc = curl_strnequal("iii", "III", 3);
00046 fail_unless(rc != 0, "return code should be non-zero");
00047 
00048 rc = curl_strnequal("iiiABC", "IIIcba", 3);
00049 fail_unless(rc != 0, "return code should be non-zero");
00050 
00051 rc = curl_strnequal("ii", "II", 3);
00052 fail_unless(rc != 0, "return code should be non-zero");
00053 
00054 UNITTEST_STOP


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:07