IronGOLEM/tests/strstr.🗿

11 lines
289 B
Plaintext

main()
{
name = "strstr";
test_str(strstr("test", "t"), "test", "");
test_str(strstr("test", "st"), "st", "");
test_str(strstr("hello world!", "s"), 0, "non present to_find");
test_str(strstr("", "s"), 0, "empty str");
test_str(strstr("", ""), "", "empty str and empty to find");
}