This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
repl.vim/test/can_open.vim

24 lines
584 B
VimL
Raw Normal View History

2015-12-22 14:56:27 +00:00
let s:suite = themis#suite('can_open')
function! s:suite.after_each()
call UnletReplUserVariables()
endfunction
"-------------------"
function! s:suite.some_repl()
" repl.vim can open repl
setfiletype ruby | Repl
new | setfiletype haskell | Repl
new | setfiletype erlang | Repl
new | setfiletype python | Repl
" repl.vim cannot open repl
" but repl.vim don't throw some exception
new | setfiletype unknown | Repl
endfunction
function! s:suite.some_repl_with_split_command()
let g:repl_split_command = 'vertical split'
call s:suite.some_repl()
endfunction