17 lines
522 B
Plaintext
17 lines
522 B
Plaintext
|
Execute ( SpaceVim api: unicode#tree ):
|
||
|
let box = SpaceVim#api#import('unicode#box')
|
||
|
if &encoding ==# 'utf-8'
|
||
|
AssertEqual box.drawing_box([1,2,3] , 1, 3, 5),
|
||
|
\ [
|
||
|
\ '╭─────┬─────┬─────╮',
|
||
|
\ '│ 1 │ 2 │ 3 │',
|
||
|
\ '╰─────┴─────┴─────╯'
|
||
|
\ ]
|
||
|
else
|
||
|
AssertEqual box.drawing_box([1,2,3] , 1, 3, 5),
|
||
|
\ ['*-----*-----*-----*',
|
||
|
\ '| 1 | 2 | 3 |',
|
||
|
\ '*-----*-----*-----*']
|
||
|
end
|
||
|
|