mirror of
https://github.com/inkarkat/vim-ingo-library.git
synced 2026-10-10 20:49:21 +02:00
11 lines
529 B
VimL
11 lines
529 B
VimL
" Test parsing of optional sequences.
|
|
|
|
call vimtest#StartTap()
|
|
call vimtap#Plan(3)
|
|
|
|
call vimtap#Is(substitute('foo\%[bar]quux', ingo#regexp#parse#OptionalSequenceExpr(), '', 'g'), 'fooquux', 'optional sequence')
|
|
call vimtap#Is(substitute('r\%[[eo]ad]', ingo#regexp#parse#OptionalSequenceExpr(), '', 'g'), 'r', 'optional sequence with character class inside')
|
|
call vimtap#Is(substitute('index\%[[[]0[]]]', ingo#regexp#parse#OptionalSequenceExpr(), '', 'g'), 'index', 'optional sequence with square brackets')
|
|
|
|
call vimtest#Quit()
|