2 * Copyright (c) 2001 Sendmail, Inc. and its suppliers.
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
11 SM_IDSTR(id
, "@(#)$Id: t-strrevcmp.c,v 1.3 2001/09/11 04:04:49 gshapiro Exp $")
15 #include <sm/string.h>
26 sm_test_begin(argc
, argv
, "test string compare");
30 SM_TEST(sm_strrevcmp(s1
, s2
) == 0);
34 SM_TEST(sm_strrevcmp(s1
, s2
) > 0);
38 SM_TEST(sm_strrevcmp(s1
, s2
) < 0);
42 SM_TEST(sm_strrevcmp(s1
, s2
) < 0);
46 SM_TEST(sm_strrevcasecmp(s1
, s2
) == 0);
50 SM_TEST(sm_strrevcasecmp(s1
, s2
) == 0);