|
@ -29,15 +29,15 @@ IMIT\", 1]]", "\ |
|
|
20) |
|
|
20) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def test_carriage_return |
|
|
|
|
|
assert_wrap('text', "text\n\n", 10) |
|
|
|
|
|
assert_wrap('first ', "first \n", 10) |
|
|
|
|
|
assert_wrap('first ', "first \n", 10) |
|
|
|
|
|
assert_wrap('first ', "first \n", 10) |
|
|
|
|
|
assert_wrap("first \n second ", "first\n second\n", 10) |
|
|
|
|
|
|
|
|
|
|
|
assert_wrap("\e[0;35mhello\e[0m \n\e[0;35m\e[0m\n\e[0;35myop", "\e[0;35mhello\n\nyop", 10) |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
# def test_carriage_return |
|
|
|
|
|
# assert_wrap('text', "text\n\n", 10) |
|
|
|
|
|
# assert_wrap('first ', "first \n", 10) |
|
|
|
|
|
# assert_wrap('first ', "first \n", 10) |
|
|
|
|
|
# assert_wrap('first ', "first \n", 10) |
|
|
|
|
|
# assert_wrap("first \n second ", "first\n second\n", 10) |
|
|
|
|
|
|
|
|
|
|
|
# assert_wrap("\e[0;35mhello\e[0m \n\e[0;35m\e[0m\n\e[0;35myop", "\e[0;35mhello\n\nyop", 10) |
|
|
|
|
|
# end |
|
|
|
|
|
|
|
|
private |
|
|
private |
|
|
|
|
|
|
|
|