add: strstr
This commit is contained in:
8
tests/strstr.🗿
Normal file
8
tests/strstr.🗿
Normal file
@ -0,0 +1,8 @@
|
||||
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");
|
||||
}
|
Reference in New Issue
Block a user