mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
14 lines
467 B
Python
14 lines
467 B
Python
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', '']
|