From 63143c94cef353d7bae13f7b13650801bb901c94 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 15 Jun 2014 00:45:40 +0300 Subject: [PATCH] tests: Test for explicit start/end args to str methods for unicode. --- tests/unicode/unicode_pos.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/unicode/unicode_pos.py 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))