diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-24 22:46:51 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-24 22:46:51 +0300 |
commit | d098c6bf852eacb4e364dd8f5dfce1a472795ff9 (patch) | |
tree | e946fecbd07b2f14e2f542df08b0b87137692c7c /tests/basics/string_endswith.py | |
parent | 561789d7182e8354761e4dc9f40ed7dd1a72686a (diff) | |
download | micropython-d098c6bf852eacb4e364dd8f5dfce1a472795ff9.tar.gz micropython-d098c6bf852eacb4e364dd8f5dfce1a472795ff9.zip |
objstr: Implement .endswith().
Diffstat (limited to 'tests/basics/string_endswith.py')
-rw-r--r-- | tests/basics/string_endswith.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/basics/string_endswith.py b/tests/basics/string_endswith.py new file mode 100644 index 0000000000..078ee6dba5 --- /dev/null +++ b/tests/basics/string_endswith.py @@ -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)) |