mirror of
https://github.com/neovim/neovim.git
synced 2026-05-05 21:45:05 +00:00
vim-patch:9.1.0415: Some functions are not tested
Problem: Some functions are not tested
Solution: Add a few more tests, fix a few minor problems
(Yegappan Lakshmanan)
closes: vim/vim#14789
fe424d13ef
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -134,6 +134,13 @@ func Test_method_syntax()
|
||||
call assert_fails('eval [1, 2, 3]-> sort()', 'E15:')
|
||||
call assert_fails('eval [1, 2, 3]->sort ()', 'E274:')
|
||||
call assert_fails('eval [1, 2, 3]-> sort ()', 'E15:')
|
||||
|
||||
" Test for using a method name containing a curly brace name
|
||||
let s = 'len'
|
||||
call assert_equal(4, "xxxx"->str{s}())
|
||||
|
||||
" Test for using a method in an interpolated string
|
||||
call assert_equal('4', $'{"xxxx"->strlen()}')
|
||||
endfunc
|
||||
|
||||
func Test_method_lambda()
|
||||
|
||||
Reference in New Issue
Block a user