add: itoa && create test_int func to test func return int and test_str to ...

This commit is contained in:
2023-06-18 12:39:18 +02:00
parent 60ca301082
commit 496b92aed9
6 changed files with 95 additions and 11 deletions

View File

@ -3,8 +3,8 @@ main()
local str;
name = "strchr";
str = "bozoman du 36";
test(strchr(str, 'z'), str + 2, "");
test(strchr(str, 0), str + 13, "");
test(strchr(str, '5'), 0, "");
test(strchr(str, '6'), str + 12, "");
test_str(strchr(str, 'z'), str + 2, "");
test_str(strchr(str, 0), str + 13, "");
test_str(strchr(str, '5'), 0, "");
test_str(strchr(str, '6'), str + 12, "");
}