1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:20:06 +08:00
SpaceVim/bundle/vim-over/test/autoload/over.vim

14 lines
582 B
VimL
Raw Normal View History

function! s:test_parse_substitute()
let owl_SID = owl#filename_to_SID("vim-over/autoload/over.vim")
OwlCheck s:parse_substitute('/homu') == []
OwlCheck s:parse_substitute('s/homu') == ["", "homu", "", ""]
OwlCheck s:parse_substitute('%s/homu') == ["%", "homu", "", ""]
OwlCheck s:parse_substitute("'<,'>s/homu") == ["'<,'>", "homu", "", ""]
OwlCheck s:parse_substitute("'<,'>s/homu/mami") == ["'<,'>", "homu", "mami", ""]
OwlCheck s:parse_substitute('''<,''>s/ho\/ou/ma\/mi') == ["'<,'>", 'ho\/ou', 'ma\/mi', ""]
OwlCheck s:parse_substitute('%sa/a//g') == []
endfunction