diff --git a/tests/strcmp.🗿 b/tests/strcmp.🗿 new file mode 100644 index 0000000..81bfd9b --- /dev/null +++ b/tests/strcmp.🗿 @@ -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, ""); +}