/***************************************************************************1* _ _ ____ _2* Project ___| | | | _ \| |3* / __| | | | |_) | |4* | (__| |_| | _ <| |___5* \___|\___/|_| \_\_____|6*7* Copyright (C) Daniel Stenberg, <[email protected]>, et al.8*9* This software is licensed as described in the file COPYING, which10* you should have received as part of this distribution. The terms11* are also available at https://curl.se/docs/copyright.html.12*13* You may opt to use, copy, modify, merge, publish, distribute and/or sell14* copies of the Software, and permit persons to whom the Software is15* furnished to do so, under the terms of the COPYING file.16*17* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY18* KIND, either express or implied.19*20* SPDX-License-Identifier: curl21*22***************************************************************************/23#include "curlcheck.h"2425CURLcode test(char *URL)26{27int rc;28(void)URL;2930rc = curl_strequal("iii", "III");31fail_unless(rc != 0, "return code should be non-zero");3233rc = curl_strequal("iiia", "III");34fail_unless(rc == 0, "return code should be zero");3536rc = curl_strequal("iii", "IIIa");37fail_unless(rc == 0, "return code should be zero");3839rc = curl_strequal("iiiA", "IIIa");40fail_unless(rc != 0, "return code should be non-zero");4142rc = curl_strnequal("iii", "III", 3);43fail_unless(rc != 0, "return code should be non-zero");4445rc = curl_strnequal("iiiABC", "IIIcba", 3);46fail_unless(rc != 0, "return code should be non-zero");4748rc = curl_strnequal("ii", "II", 3);49fail_unless(rc != 0, "return code should be non-zero");5051return CURLE_OK;52}535455