Forgot to add the splitlines test.

This commit is contained in:
Dave Halter
2016-08-22 18:03:19 +02:00
parent 721195157a
commit d748f6fad6

13
test/test_common.py Normal file
View File

@@ -0,0 +1,13 @@
from jedi.common import splitlines
def test_splitlines_no_keepends():
assert splitlines('asd\r\n') == ['asd', '']
assert splitlines('asd\r\n\f') == ['asd', '\f']
assert splitlines('\fasd\r\n') == ['\fasd', '']
def test_splitlines_keepends():
assert splitlines('asd\r\n', keepends=True) == ['asd\r\n', '']
assert splitlines('asd\r\n\f', keepends=True) == ['asd\r\n', '\f']
assert splitlines('\fasd\r\n', keepends=True) == ['\fasd\r\n', '']