Lines Matching refs:exp_result
47 do_one_test (impl_t *impl, const char *s1, const char *s2, int exp_result) in do_one_test() argument
50 if ((exp_result == 0 && result != 0) in do_one_test()
51 || (exp_result < 0 && result >= 0) in do_one_test()
52 || (exp_result > 0 && result <= 0)) in do_one_test()
55 result, exp_result); in do_one_test()
63 int exp_result) in do_test() argument
91 s2[len + 1] = 24 + exp_result; in do_test()
93 if ((s2[len - 1] == 'z' && exp_result == -1) in do_test()
94 || (s2[len - 1] == 'a' && exp_result == 1)) in do_test()
95 s1[len - 1] += exp_result; in do_test()
96 else if ((s1[len - 1] == 'Z' + 1 && exp_result == 1) in do_test()
97 || (s1[len - 1] == 'A' - 1 && exp_result == -1)) in do_test()
98 s1[len - 1] = tolower (s2[len - 1]) + exp_result; in do_test()
100 s2[len - 1] -= exp_result; in do_test()
103 if (tolower (s1[len - 1]) - tolower (s2[len - 1]) != exp_result) in do_test()
105 if (exp_result == -1) in do_test()
110 else if (exp_result == 0) in do_test()
120 do_one_test (impl, s1, s2, exp_result); in do_test()