Lines Matching refs:tests
10 } tests[] = variable
16 #define ntests (sizeof (tests) / sizeof (tests[0]))
35 if (compare (tests[i].str1, tests[i].str2, -1)) in do_test()
37 printf ("FAIL: \"%s\" > \"%s\"\n", tests[i].str1, tests[i].str2); in do_test()
40 if (compare (tests[i].str2, tests[i].str1, +1)) in do_test()
42 printf ("FAIL: \"%s\" > \"%s\"\n", tests[i].str2, tests[i].str1); in do_test()
45 char *copy1 = strdupa (tests[i].str1); in do_test()
46 if (compare (tests[i].str1, copy1, 0)) in do_test()
48 printf ("FAIL: \"%s\" != \"%s\"\n", tests[i].str1, copy1); in do_test()
51 char *copy2 = strdupa (tests[i].str2); in do_test()
52 if (compare (tests[i].str2, copy2, 0)) in do_test()
54 printf ("FAIL: \"%s\" != \"%s\"\n", tests[i].str2, copy2); in do_test()