summaryrefslogtreecommitdiffstats
path: root/Lib/test/string_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed .capitalize() method of Unicode objects to work like theMarc-André Lemburg2001-01-291-0/+2
| | | | | | corresponding string method. Added tests for this too. Patch written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Whitespace normalization. Leaving tokenize_tests.py alone for now.Tim Peters2001-01-181-1/+1
|
* Added checks to prevent PyUnicode_Count() from dumping coreMarc-André Lemburg2001-01-161-0/+4
| | | | | | | | | | | | in case the parameters are out of bounds and fixes error handling for .count(), .startswith() and .endswith() for the case of mixed string/Unicode objects. This patch adds Python style index semantics to PyUnicode_Count() indices (including the special handling of negative indices). The patch is an extended version of patch #103249 submitted by Michael Hudson (mwh) on SF. It also includes new test cases.
* small updates to string_join:Jeremy Hylton2000-07-111-0/+3
| | | | | | | use PyString_AS_STRING macro on local string object when resizing string, make sure resized string will always be big enough split string containing error message across two lines add test to string_tests that causes resizing
* add more tests of string.join variants to run_method_testsJeremy Hylton2000-07-111-8/+11
|
* factor out test definitions to string_tests moduleJeremy Hylton2000-07-101-0/+196
test_string and test_userstring run same tests for string methods