1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 03:00:06 +08:00
SpaceVim/bundle/vim-over/test/autoload/over.vim
2022-06-10 16:31:14 +08:00

14 lines
582 B
VimL

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