/***************************************************************************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 "first.h"2425#define t1301_fail_unless(expr, msg) \26do { \27if(!(expr)) { \28curl_mfprintf(stderr, "%s:%d Assertion '%s' FAILED: %s\n", \29__FILE__, __LINE__, #expr, msg); \30return TEST_ERR_FAILURE; \31} \32} while(0)3334static CURLcode test_lib1301(const char *URL)35{36int rc;37(void)URL;3839rc = curl_strequal("iii", "III");40t1301_fail_unless(rc != 0, "return code should be non-zero");4142rc = curl_strequal("iiia", "III");43t1301_fail_unless(rc == 0, "return code should be zero");4445rc = curl_strequal("iii", "IIIa");46t1301_fail_unless(rc == 0, "return code should be zero");4748rc = curl_strequal("iiiA", "IIIa");49t1301_fail_unless(rc != 0, "return code should be non-zero");5051rc = curl_strnequal("iii", "III", 3);52t1301_fail_unless(rc != 0, "return code should be non-zero");5354rc = curl_strnequal("iiiABC", "IIIcba", 3);55t1301_fail_unless(rc != 0, "return code should be non-zero");5657rc = curl_strnequal("ii", "II", 3);58t1301_fail_unless(rc != 0, "return code should be non-zero");5960return CURLE_OK;61}626364