Refactoring test/
This commit is contained in:
parent
d30a22c235
commit
cc19359fb8
@ -1,18 +0,0 @@
|
|||||||
let s:suite = themis#suite('can_open')
|
|
||||||
|
|
||||||
function! s:suite.after_each()
|
|
||||||
call ResetVariables()
|
|
||||||
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
|
|
18
test/repl_vim.vim
Normal file
18
test/repl_vim.vim
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
let s:suite = themis#suite('repl_vim')
|
||||||
|
|
||||||
|
function! s:suite.after_each()
|
||||||
|
call ResetVariables()
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
"-------------------"
|
||||||
|
|
||||||
|
function! s:suite.do_not_throw_exception_when_open_repl()
|
||||||
|
" repl.vim can open repl
|
||||||
|
setfiletype ruby | Repl | new
|
||||||
|
setfiletype haskell | Repl | new
|
||||||
|
setfiletype erlang | Repl | new
|
||||||
|
setfiletype python | Repl | new
|
||||||
|
" repl.vim cannot open repl
|
||||||
|
" but repl.vim don't throw some exception
|
||||||
|
setfiletype unknown | Repl
|
||||||
|
endfunction
|
Reference in New Issue
Block a user