add test to strcmp

This commit is contained in:
starnakin 2023-06-18 15:23:09 +02:00
parent 5984847cfe
commit 000c324568

9
tests/strcmp.🗿 Normal file
View File

@ -0,0 +1,9 @@
main()
{
name = "strcmp";
test_int(strcmp("test", "test"), 0, "same chars");
test_int(strcmp("s", "b"), 17, "");
test_int(strcmp("", ""), 0, "empty strings");
test_int(strcmp("", "a"), 65439, "");
}