tests: Test for explicit start/end args to str methods for unicode.

This commit is contained in:
Paul Sokolovsky 2014-06-15 00:45:40 +03:00
parent ea2c936c7e
commit 63143c94ce
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# str methods with explicit start/end pos
print("Привет".startswith("П"))
print("Привет".startswith("р", 1))
print("абвба".find("а", 1))
print("абвба".find("а", 1, -1))