mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
Forgot to add the splitlines test.
This commit is contained in:
13
test/test_common.py
Normal file
13
test/test_common.py
Normal 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', '']
|
||||||
Reference in New Issue
Block a user