mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
@@ -164,3 +164,11 @@ func Test_Write_To_Current_Buffer_Fixes_Cursor_Str()
|
|||||||
|
|
||||||
bwipe!
|
bwipe!
|
||||||
endfunction
|
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!
|
bwipe!
|
||||||
endfunction
|
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])
|
call assert_match(s:py3pattern, split(var)[0])
|
||||||
endif
|
endif
|
||||||
endfunc
|
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])
|
call assert_match(s:py2pattern, split(var)[0])
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_Catch_Exception_Message()
|
||||||
|
try
|
||||||
|
pyx raise RuntimeError( 'TEST' )
|
||||||
|
catch /.*/
|
||||||
|
call assert_match('^Vim(.*):.*RuntimeError: TEST$', v:exception )
|
||||||
|
endtry
|
||||||
|
endfunc
|
||||||
|
Reference in New Issue
Block a user