diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-15 00:45:40 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-27 00:04:20 +0300 |
commit | 63143c94cef353d7bae13f7b13650801bb901c94 (patch) | |
tree | 3b742996caa7cdcacf47aba4602fbc080f8dd9bb /tests/unicode/unicode_pos.py | |
parent | ea2c936c7e6af8e6d8168d039bdf02797b0777bf (diff) | |
download | micropython-63143c94cef353d7bae13f7b13650801bb901c94.tar.gz micropython-63143c94cef353d7bae13f7b13650801bb901c94.zip |
tests: Test for explicit start/end args to str methods for unicode.
Diffstat (limited to 'tests/unicode/unicode_pos.py')
-rw-r--r-- | tests/unicode/unicode_pos.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unicode/unicode_pos.py b/tests/unicode/unicode_pos.py new file mode 100644 index 0000000000..6a5982920a --- /dev/null +++ b/tests/unicode/unicode_pos.py @@ -0,0 +1,5 @@ +# str methods with explicit start/end pos +print("Привет".startswith("П")) +print("Привет".startswith("р", 1)) +print("абвба".find("а", 1)) +print("абвба".find("а", 1, -1)) |