objstr: Implement .endswith().

This commit is contained in:
Paul Sokolovsky
2014-05-24 22:46:51 +03:00
parent 561789d718
commit d098c6bf85
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
print("foobar".endswith("bar"))
print("foobar".endswith("baR"))
print("foobar".endswith("bar1"))
print("foobar".endswith("foobar"))
print("foobar".endswith(""))
#print("1foobar".startswith("foo", 1))
#print("1foo".startswith("foo", 1))
#print("1foo".startswith("1foo", 1))
#print("1fo".startswith("foo", 1))
#print("1fo".startswith("foo", 10))