circuitpython/tests/basics/string_splitlines.py

14 lines
307 B
Python
Raw Normal View History

2015-04-03 17:09:23 -04:00
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))