in reply to How could I check if substring is not included in string ?

The documentation says:

If the substring is not found, index returns one less than the base, ordinarily -1 .

So you will need to modify your test accordingly.

  • Comment on Re: How could I check if substring is not included in string ?