circuitpython/tests/unicode
tll 68c28174d0 py/objstr: Add check for valid UTF-8 when making a str from bytes.
This patch adds a function utf8_check() to check for a valid UTF-8 encoded
string, and calls it when constructing a str from raw bytes.  The feature
is selectable at compile time via MICROPY_PY_BUILTINS_STR_UNICODE_CHECK and
is enabled if unicode is enabled.  It costs about 110 bytes on Thumb-2, 150
bytes on Xtensa and 170 bytes on x86-64.
2017-09-06 16:43:09 +10:00
..
data tests: Add some tests to improve coverage. 2015-01-29 14:56:09 +00:00
file1.py Use mode/encoding kwargs in io and unicode tests 2014-10-21 22:10:38 +03:00
file2.py tests: Add some tests to improve coverage. 2015-01-29 14:56:09 +00: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 py: Support unicode (utf-8 encoded) identifiers in Python source. 2015-06-09 10:58:07 +00: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: Add missing tests for builtins, and many other things. 2015-04-04 22:05:30 +01: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_str_format.py py/objstr: Make string formatting 8-bit clean. 2015-08-29 23:13:51 +01:00
unicode_str_modulo.py py/objstr: Make string formatting 8-bit clean. 2015-08-29 23:13:51 +01:00
unicode_subscr.py tests/unicode_subscr.py: Detailed test for subscripting unicode strings. 2016-07-25 19:28:19 +03:00
unicode.py py/objstr: Add check for valid UTF-8 when making a str from bytes. 2017-09-06 16:43:09 +10:00