1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:20:05 +08:00
SpaceVim/test/api/vim/highlight.vader
Wang Shidong 464e9d5957
Add test for api (#1849)
* Add test for toml api

* Add test for number api

* Add test for file api

* Add test for vim#highlight api

* Add test for icon api
2018-06-20 20:44:08 +08:00

8 lines
381 B
Plaintext

Execute ( SpaceVim api: vim#highlight ):
let hi = SpaceVim#api#import('vim#highlight')
set termguicolors
highlight TestAPIVimHighlight ctermfg=11 guifg=#89DDFF guibg=#212121
AssertEqual hi.group2dict('TestAPIVimHighlight').guibg, '#212121'
AssertEqual hi.group2dict('TestAPIVimHighlight').guifg, '#89ddff'
AssertEqual hi.group2dict('TestAPIVimHighlight').ctermfg, '11'