summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapi/unicode.c
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] C API tests: use special markers to test that output parameters were ↵Serhiy Storchaka2023-09-081-14/+24
| | | | | | set (GH-109014) (#109023) [3.12] C API tests: use special markers to test that output parameters were set (GH-109014). (cherry picked from commit bf414b7fcb7c8ba780a5e1d9f320ecef0c7f9488)
* [3.12] Add Modules/_testcapi/util.h header (GH-108774) (#108780)Miss Islington (bot)2023-09-021-40/+18
| | | | | | | | Add Modules/_testcapi/util.h header (GH-108774) It contains common macros used in C API tests. (cherry picked from commit 0e01fac315dfa705ac8a6954485546f28cf4c87d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-99593: Add tests for Unicode C API (part 3) (GH-104728) (GH-106595)Serhiy Storchaka2023-07-101-1/+506
| | | | Add tests for codecs. (cherry picked from commit 51ea664d18938645521bdd128a3c55f9c197644c)
* gh-98836: Extend PyUnicode_FromFormat() (GH-98838)Serhiy Storchaka2023-05-211-15/+48
| | | | | | | | | * Support for conversion specifiers o (octal) and X (uppercase hexadecimal). * Support for length modifiers j (intmax_t) and t (ptrdiff_t). * Length modifiers are now applied to all integer conversions. * Support for wchar_t C strings (%ls and %lV). * Support for variable width and precision (*). * Support for flag - (left alignment).
* gh-99593: Add tests for Unicode C API (part 2) (#99868)Serhiy Storchaka2023-05-041-27/+479
| | | | | Add tests for lower-level functions. Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (GH-99613)Serhiy Storchaka2022-12-011-0/+36
| | | | Previously *consumed was not set in this case.
* gh-99593: Add tests for Unicode C API (part 1) (GH-99651)Serhiy Storchaka2022-11-291-6/+332
| | | | Add tests for functions corresponding to the str class methods.
* gh-94808: Cover `PyUnicode_Count` in CAPI (#96929)Nikita Sobolev2022-10-061-0/+21
|
* gh-95504: Fix negative numbers in PyUnicode_FromFormat (GH-95848)Petr Viktorin2022-08-101-0/+60
| | | Co-authored-by: philg314 <110174000+philg314@users.noreply.github.com>
* gh-93649: Split unicode tests from _testcapimodule.c & add some more (GH-95819)Petr Viktorin2022-08-101-0/+653
- Move PyUnicode tests to a separate file - Add some more tests for PyUnicode_FromFormat Co-authored-by: philg314 <110174000+philg314@users.noreply.github.com>