tests: Add test for str.splitlines().
This commit is contained in:
parent
ac2f7a7f6a
commit
620058cc57
13
tests/basics/string_splitlines.py
Normal file
13
tests/basics/string_splitlines.py
Normal file
@ -0,0 +1,13 @@
|
||||
try:
|
||||
str.splitlines
|
||||
except:
|
||||
import sys
|
||||
print("SKIP")
|
||||
sys.exit()
|
||||
|
||||
print("foo\nbar".splitlines())
|
||||
print("foo\nbar\n".splitlines())
|
||||
print("foo\nbar".splitlines(True))
|
||||
print("foo\nbar\n".splitlines(True))
|
||||
print("foo\nbar".splitlines(keepends=True))
|
||||
print("foo\nbar\n".splitlines(keepends=True))
|
Loading…
x
Reference in New Issue
Block a user