Refactoring test/

This commit is contained in:
aiya000 2016-01-24 22:20:15 +09:00
parent d30a22c235
commit cc19359fb8
2 changed files with 18 additions and 18 deletions

View File

@ -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
View 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