Skip to content

Commit

Permalink
Add one more torture test for toy_multisplit.
Browse files Browse the repository at this point in the history
  • Loading branch information
larryhastings committed Sep 7, 2023
1 parent b6077e8 commit 6599a6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ def flush_word():
#
# you know what's a good idea? testing!
# let's run a quick test suite to ensure
# toy_multisplit *itself works correctly.
# toy_multisplit *itself* works correctly.
#

want_prints = False
Expand Down Expand Up @@ -1222,6 +1222,7 @@ def t(s, seps, expected):
t('XYabcXbdefYghiXjkl', 'XY', ['', 'X', '', 'Y', 'abc', 'X', 'bdef', 'Y', 'ghi', 'X', 'jkl'])
t('XYabcXbdefYghiXjkXYZl', ('XY', 'X', 'XYZ', 'Y', 'Z'), ['', 'XY', 'abc', 'X', 'bdef', 'Y', 'ghi', 'X', 'jk', 'XYZ', 'l'])
t('XYabcXbdefYZghiXjkXYZlY', ('XY', 'X', 'XYZ', 'Y', 'Z'), ['', 'XY', 'abc', 'X', 'bdef', 'Y', '', 'Z', 'ghi', 'X', 'jk', 'XYZ', 'l', 'Y', ''])
t('qXYZXYXXYXYZabcXb', ('XY', 'X', 'XYZ', 'Y', 'Z'), ['q', 'XYZ', '', 'XY', '', 'X', '', 'XY', '', 'XYZ', 'abc', 'X', 'b'])

t(' \t abc de fgh \n\tijk lm ', big.whitespace,
['', ' ', '', ' ', '', '\t', '', ' ', 'abc', ' ', 'de', ' ', '', ' ', 'fgh', ' ', '', '\n', '', '\t', 'ijk', ' ', '', ' ', '', ' ', '', ' ', 'lm', ' ', '', ' ', ''])
Expand Down

0 comments on commit 6599a6b

Please sign in to comment.