mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
commit
99eca04835
@ -164,3 +164,11 @@ func Test_Write_To_Current_Buffer_Fixes_Cursor_Str()
|
||||
|
||||
bwipe!
|
||||
endfunction
|
||||
|
||||
func Test_Catch_Exception_Message()
|
||||
try
|
||||
py raise RuntimeError( 'TEST' )
|
||||
catch /.*/
|
||||
call assert_match('^Vim(.*):.*RuntimeError: TEST$', v:exception )
|
||||
endtry
|
||||
endfunc
|
||||
|
@ -164,3 +164,18 @@ func Test_Write_To_Current_Buffer_Fixes_Cursor_Str()
|
||||
|
||||
bwipe!
|
||||
endfunction
|
||||
|
||||
func Test_Catch_Exception_Message()
|
||||
try
|
||||
py3 raise RuntimeError( 'TEST' )
|
||||
catch /.*/
|
||||
call assert_match('^Vim(.*):.*RuntimeError: TEST$', v:exception )
|
||||
endtry
|
||||
endfunc
|
||||
|
||||
func Test_unicode()
|
||||
" this crashed Vim once
|
||||
" set encoding=utf32
|
||||
py3 print('hello')
|
||||
" set encoding=utf8
|
||||
endfunc
|
||||
|
@ -72,3 +72,11 @@ func Test_pyxfile()
|
||||
call assert_match(s:py3pattern, split(var)[0])
|
||||
endif
|
||||
endfunc
|
||||
|
||||
func Test_Catch_Exception_Message()
|
||||
try
|
||||
pyx raise RuntimeError( 'TEST' )
|
||||
catch /.*/
|
||||
call assert_match('^Vim(.*):.*RuntimeError: TEST$', v:exception )
|
||||
endtry
|
||||
endfunc
|
||||
|
@ -72,3 +72,11 @@ func Test_pyxfile()
|
||||
call assert_match(s:py2pattern, split(var)[0])
|
||||
endif
|
||||
endfunc
|
||||
|
||||
func Test_Catch_Exception_Message()
|
||||
try
|
||||
pyx raise RuntimeError( 'TEST' )
|
||||
catch /.*/
|
||||
call assert_match('^Vim(.*):.*RuntimeError: TEST$', v:exception )
|
||||
endtry
|
||||
endfunc
|
||||
|
Loading…
Reference in New Issue
Block a user