core: all int is now num

This commit is contained in:
2023-06-18 20:03:27 +02:00
parent 1b878db8fe
commit 85a5b567b2
8 changed files with 31 additions and 27 deletions

View File

@ -2,11 +2,11 @@ main()
{
name = "strncmp";
test_int(strncmp("test", "test", 4), 0, "same chars");
test_int(strncmp("s", "b", 4), 17, "");
test_int(strncmp("", "", 4), 0, "empty strings");
test_int(strncmp("", "a", 0), 0, "");
test_int(strncmp("ab", "ac", 1), 0, "");
test_int(strncmp("aq", "a", 1), 0, "");
test_int(strncmp("aq", "a", 2), 113, "");
test_num(strncmp("test", "test", 4), 0, "same chars");
test_num(strncmp("s", "b", 4), 17, "");
test_num(strncmp("", "", 4), 0, "empty strings");
test_num(strncmp("", "a", 0), 0, "");
test_num(strncmp("ab", "ac", 1), 0, "");
test_num(strncmp("aq", "a", 1), 0, "");
test_num(strncmp("aq", "a", 2), 113, "");
}