objstr: Implement .endswith().
This commit is contained in:
11
tests/basics/string_endswith.py
Normal file
11
tests/basics/string_endswith.py
Normal 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))
|
||||
Reference in New Issue
Block a user