Add simple_split() test with maxsplit=0 and keep.
This commit is contained in:
parent
c13f7e5f78
commit
59460035c5
@ -182,3 +182,8 @@ class TestSimpleSplit:
|
||||
def test_split_keep(self, test, expected):
|
||||
"""Test splitting with keep=True."""
|
||||
assert split.simple_split(test, keep=True) == expected
|
||||
|
||||
def test_maxsplit_0_keep(self):
|
||||
"""Test special case with maxsplit=0 and keep=True."""
|
||||
s = "foo bar"
|
||||
assert split.simple_split(s, keep=True, maxsplit=0) == [s]
|
||||
|
Loading…
Reference in New Issue
Block a user