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.
10 #pragma ident "%Z%%M% %I% %E% SMI"
13 SM_IDSTR(id
, "@(#)$Id: t-strrevcmp.c,v 1.1 2001/07/16 21:35:28 ca Exp $")
17 #include <sm/string.h>
28 sm_test_begin(argc
, argv
, "test string compare");
32 SM_TEST(sm_strrevcmp(s1
, s2
) == 0);
36 SM_TEST(sm_strrevcmp(s1
, s2
) > 0);
40 SM_TEST(sm_strrevcmp(s1
, s2
) < 0);
44 SM_TEST(sm_strrevcmp(s1
, s2
) < 0);
48 SM_TEST(sm_strrevcasecmp(s1
, s2
) == 0);
52 SM_TEST(sm_strrevcasecmp(s1
, s2
) == 0);