| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
hyphenated words wrapped in punctuation, like "foo-bar" or [ding-dong],
are split correctly.
|
| |
|
|
|
|
|
|
|
|
| |
endings get fixed even if the input is too short to wrap. Also throw
in a bunch of other tests for this rather tricky and under-tested
feature.
In WrapTestCase.setUp(), don't bother setting fix_sentence_endings=True
for self.wrapper -- just use a separate wrapper in the two tests that
care about it, namely test_whitespace() and test_fix_sentence_endings().
|
| |
|
|
|
|
| |
When the indents were set to longer than the width and long word breaking
was enabled, an infinite loop would result because the inner loop did not
assure that at least one character was stripped off on every pass.
|
| | |
|
| |
|
|
| |
edge cases that David Goodger reported long ago (July 2002?).
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
input, and 2) unicode input means unicode output. This closes
SF bug #622831.
|
| |
|
|
|
|
| |
Change LongWordTestCase.setUp() -- remove leading whitespace from
text string.
Comment fix.
|
| |
|
|
|
|
|
| |
bug #596434. (Alas, I don't think this completely covers that bug.)
Remove 'wrapper' argument from BaseTestCase.check_split() -- it's not
actually needed.
|
| |
|
|
| |
enough to fit in one line.
|
| | |
|
| |
|
|
| |
we need to test TextWrapper._split().
|
| | |
|
| | |
|
| |
|
|
| |
trailing whitespace.
|
| |
|
|
|
| |
em-dashes -- like this -- properly. (Also--like this. Although this
usage may be incompatible with fixing bug #596434; we shall see.)
|
| | |
|
| |
|
|
|
| |
(tests) from test_funky_punc() to test_break_long() and
test_long_words() to test_nobreak_long().
|
| | |
|
| |
|
|
|
|
|
| |
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'.
|
| |
|
|
|
| |
for-loops) in test_simple(), test_wrap_short() test_hyphenated(), and
test_funky_punc().
|
| |
|
|
|
| |
Remove some useless comments (redundant, or info presumably available in
PyUnit docs).
|
| |
|
|
|
|
|
| |
* lowercase test*() methods
* define test_main() and use it instead of unittest.main()
Kill #! line.
Improve some test names and docstrings.
|
|
|
<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.
|