mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 03:00:04 +08:00
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
|
|
|