forked from starnakin/IronGOLEM
add test to strcmp
This commit is contained in:
parent
5984847cfe
commit
000c324568
9
tests/strcmp.🗿
Normal file
9
tests/strcmp.🗿
Normal 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, "");
|
||||
}
|
Loading…
Reference in New Issue
Block a user