1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:40:04 +08:00
SpaceVim/test/api/unicode/icon.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

9 lines
340 B
Plaintext

Execute ( SpaceVim api: unicode#icon ):
let &encoding = 'utf-8'
let icon = SpaceVim#api#import('unicode#icon')
AssertEqual icon.battery_status(90), ''
AssertEqual icon.battery_status(75), ''
AssertEqual icon.battery_status(50), ''
AssertEqual icon.battery_status(25), ''
AssertEqual icon.battery_status(10), ''