1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 07:00:05 +08:00
SpaceVim/test/api/unicode/box.vader
2021-08-21 13:21:11 +08:00

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