1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:20:05 +08:00
SpaceVim/bundle/VimRegStyle/test/003_extended-regex_vim.vim
2020-09-06 21:56:12 +08:00

15 lines
479 B
VimL

call vimtest#StartTap()
call vimtap#Plan(2) " <== XXX Keep plan number updated. XXX
" use default lookup function (which simply accesses vim variables)
let erex = ExtendedRegexObject()
let x = 'a'
let t = '\<\%{g:x,4,.}\>'
let t_expanded = '\<a\.a\.a\.a\>'
call vimtap#Is(erex.expand_composition_atom(t), t_expanded, 'expand vim global variable (expand_composition_atom)')
call vimtap#Is(erex.parse(t), t_expanded, 'expand vim global variable (parse)')
call vimtest#Quit()