mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
tests: Add tests for unicode find()/rfind()/index().
This commit is contained in:
6
tests/unicode/unicode_index.py
Normal file
6
tests/unicode/unicode_index.py
Normal file
@@ -0,0 +1,6 @@
|
||||
print("Привет".find("т"))
|
||||
print("Привет".find("П"))
|
||||
print("Привет".rfind("т"))
|
||||
print("Привет".rfind("П"))
|
||||
print("Привет".index("т"))
|
||||
print("Привет".index("П"))
|
||||
Reference in New Issue
Block a user