12 lines
219 B
Python
12 lines
219 B
Python
from magicli.magicli import break_lines
|
|
|
|
|
|
def test_no_input():
|
|
assert break_lines(None, 0) == []
|
|
|
|
def test_short_line():
|
|
assert break_lines('This is a line.', 8) == [
|
|
'This is',
|
|
'a line.',
|
|
]
|