1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:30:04 +08:00
SpaceVim/bundle/VimRegStyle/test/001_numbers_ip-addresses.vim
2020-09-06 21:56:12 +08:00

11 lines
332 B
VimL
Vendored

call vimtest#StartTap()
call vimtap#Plan(2) " <== XXX Keep plan number updated. XXX
let an_ip4 = '192.168.1.1'
let not_an_ip4 = '999.168.1.1'
call vimtap#Is(vrs#matches(an_ip4 , 'ip4' ), 1, 'ip4')
call vimtap#Is(vrs#matches(not_an_ip4 , 'ip4' ), 0, 'not an ip4')
call vimtest#Quit()