diff --git a/tests/cpu-tests/tests/string.c b/tests/cpu-tests/tests/string.c index 6170268..3a9200d 100644 --- a/tests/cpu-tests/tests/string.c +++ b/tests/cpu-tests/tests/string.c @@ -14,10 +14,10 @@ char str[20]; int main() { check(strcmp(s[0], s[2]) == 0); - check(strcmp(s[0], s[1]) == -1); - check(strcmp(s[0] + 1, s[1] + 1) == -1); - check(strcmp(s[0] + 2, s[1] + 2) == -1); - check(strcmp(s[0] + 3, s[1] + 3) == -1); + check(strcmp(s[0], s[1]) < 0); + check(strcmp(s[0] + 1, s[1] + 1) < 0); + check(strcmp(s[0] + 2, s[1] + 2) < 0); + check(strcmp(s[0] + 3, s[1] + 3) < 0); check(strcmp( strcat(strcpy(str, str1), s[3]), s[4]) == 0);