micropython/tests/unicode
Jeff Epler e90b85cc98 extmod/modure: Convert byte offsets to unicode indices when necessary.
And add a test.

Fixes issue #9202.

Signed-off-by: Jeff Epler <jepler@gmail.com>
2022-09-06 17:08:18 +10:00
..
data tests/unicode: Add test for invalid utf-8 file contents. 2022-08-26 16:47:27 +10:00
file1.py Use mode/encoding kwargs in io and unicode tests 2014-10-21 22:10:38 +03:00
file2.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
file_invalid.py tests/unicode: Add test for invalid utf-8 file contents. 2022-08-26 16:47:27 +10:00
unicode.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
unicode_chr.py tests: Add missing tests for builtins, and many other things. 2015-04-04 22:05:30 +01:00
unicode_id.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
unicode_index.py tests: Add tests for unicode find()/rfind()/index(). 2014-06-27 00:04:19 +03:00
unicode_iter.py tests: Add test for unicode string iteration. 2014-06-27 00:04:19 +03:00
unicode_ord.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
unicode_pos.py tests: Test for explicit start/end args to str methods for unicode. 2014-06-27 00:04:20 +03:00
unicode_slice.py py/objslice: Add support for indices() method on slice objects. 2019-12-28 23:55:15 +11:00
unicode_str_format.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
unicode_str_modulo.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
unicode_subscr.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
unicode_ure.py extmod/modure: Convert byte offsets to unicode indices when necessary. 2022-09-06 17:08:18 +10:00