Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add DedentTestCase to test dedent() function. | Greg Ward | 2003-05-08 | 1 | -3/+68 |
| | |||||
* | SF #596434: add test_funky_parens() to probe some more of the tricky | Greg Ward | 2003-05-07 | 1 | -3/+19 |
| | | | | edge cases that David Goodger reported long ago (July 2002?). | ||||
* | SF #726446: ensure wrap() raises ValueError when width <= 0. | Greg Ward | 2003-05-07 | 1 | -0/+6 |
| | |||||
* | Combine the functionality of test_support.run_unittest() | Walter Dörwald | 2003-05-01 | 1 | -5/+1 |
| | | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807. | ||||
* | Add test_unicode() to ensure that 1) textwrap doesn't crash on unicode | Greg Ward | 2002-12-09 | 1 | -0/+12 |
| | | | | | input, and 2) unicode input means unicode output. This closes SF bug #622831. | ||||
* | Added test_initial_whitespace() to ensure that SF bug #622849 is fixed. | Greg Ward | 2002-12-09 | 1 | -3/+13 |
| | | | | | | Change LongWordTestCase.setUp() -- remove leading whitespace from text string. Comment fix. | ||||
* | Ad test_funky_hyphens() to test some screwy edge cases reported in SF | Greg Ward | 2002-10-31 | 1 | -5/+18 |
| | | | | | | | bug #596434. (Alas, I don't think this completely covers that bug.) Remove 'wrapper' argument from BaseTestCase.check_split() -- it's not actually needed. | ||||
* | Fix an endcase bug: initial_indent was ignored when the text was short | Guido van Rossum | 2002-10-02 | 1 | -3/+13 |
| | | | | enough to fit in one line. | ||||
* | Test an em-dash with adjacent punctuation. | Greg Ward | 2002-08-22 | 1 | -0/+6 |
| | |||||
* | Factored out BaseTestCase.check_split() method -- use it wherever | Greg Ward | 2002-08-22 | 1 | -8/+8 |
| | | | | we need to test TextWrapper._split(). | ||||
* | Test _split() method in test_unix_options(). | Greg Ward | 2002-08-22 | 1 | -0/+9 |
| | |||||
* | Add test_unix_options() to WrapTestCase to test for SF bug #596434. | Greg Ward | 2002-08-22 | 1 | -0/+28 |
| | |||||
* | Standardize behavior: no docstrings in test functions. Also strip | Guido van Rossum | 2002-08-22 | 1 | -16/+16 |
| | | | | trailing whitespace. | ||||
* | Add test_em_dash() to WrapTestCase to make sure that TextWrapper handles | Greg Ward | 2002-08-22 | 1 | -2/+53 |
| | | | | | em-dashes -- like this -- properly. (Also--like this. Although this usage may be incompatible with fixing bug #596434; we shall see.) | ||||
* | Simplification/cleanup in IndentTestCases. | Greg Ward | 2002-08-22 | 1 | -16/+10 |
| | |||||
* | Factor LongWordTestCase out of WrapTestCase, and rename its methods | Greg Ward | 2002-08-22 | 1 | -13/+14 |
| | | | | | (tests) from test_funky_punc() to test_break_long() and test_long_words() to test_nobreak_long(). | ||||
* | Rename base test case class to (yawn) BaseTestCase. | Greg Ward | 2002-08-22 | 1 | -3/+3 |
| | |||||
* | Ditch the whole loop-over-subcases way of working. Add check_wrap() to | Greg Ward | 2002-08-22 | 1 | -74/+59 |
| | | | | | | | base class (WrapperTestCase) instead, and call it repeatedly in the methods that used to have a loop-over-subcases. Much simpler. Rename perennial temp variable 't' to 'text'. | ||||
* | Simplify and reformat the use of 'subcases' lists (and following | Greg Ward | 2002-08-22 | 1 | -52/+32 |
| | | | | | for-loops) in test_simple(), test_wrap_short() test_hyphenated(), and test_funky_punc(). | ||||
* | Add comment header block. | Greg Ward | 2002-08-22 | 1 | -12/+10 |
| | | | | | Remove some useless comments (redundant, or info presumably available in PyUnit docs). | ||||
* | Conform to standards documented in README: | Greg Ward | 2002-08-22 | 1 | -15/+19 |
| | | | | | | | * lowercase test*() methods * define test_main() and use it instead of unittest.main() Kill #! line. Improve some test names and docstrings. | ||||
* | Test script for the textwrap module. Kindly provided by Peter Hansen | Greg Ward | 2002-08-22 | 1 | -0/+261 |
<peter@engcorp.com> based on a test script that's been kicking around my home directory for a couple of months now and only saw the light of day because I included it when I sent textwrap.py to python-dev for review. |