From b1949e4c0984c1f254c5877da1b977c01567bf4d Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 14 Jun 2014 03:36:06 +0300 Subject: [PATCH] tests: Add tests for unicode find()/rfind()/index(). --- tests/unicode/unicode_index.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/unicode/unicode_index.py diff --git a/tests/unicode/unicode_index.py b/tests/unicode/unicode_index.py new file mode 100644 index 000000000..3c31468a4 --- /dev/null +++ b/tests/unicode/unicode_index.py @@ -0,0 +1,6 @@ +print("Привет".find("т")) +print("Привет".find("П")) +print("Привет".rfind("т")) +print("Привет".rfind("П")) +print("Привет".index("т")) +print("Привет".index("П"))