Lines Matching refs:string
60 call assert_fails('luado string.format()',
61 \ "[string \"vim chunk\"]:1: bad argument #1 to 'format' (string expected, got no value)")
63 let msg = "[string \"vim chunk\"]:1: global 'func' is not callable (a nil value)"
65 let msg = "[string \"vim chunk\"]:1: attempt to call a nil value (global 'func')"
67 let msg = "[string \"vim chunk\"]:1: attempt to call global 'func' (a nil value)"
70 call assert_fails('luado error("failed")', "[string \"vim chunk\"]:1: failed")
80 " lua.eval with a string
82 call assert_equal('string', 'vim.type(v)'->luaeval())
119 \ "[string \"vim chunk\"]:1: bad argument #1 to 'eval' (string expected, got nil)")
121 \ "[string \"vim chunk\"]:1: bad argument #1 to 'eval' (string expected, got boolean)")
123 \ "[string \"vim chunk\"]:1: bad argument #1 to 'eval' (string expected, got table)")
125 \ "[string \"vim chunk\"]:1: bad argument #1 to 'eval' (string expected, got function)")
127 \ "[string \"vim chunk\"]:1: bad argument #1 to 'eval' (string expected, got userdata)")
155 let msg = "[string \"luaeval\"]:1: field 'xyz' is not callable (a nil value)"
157 let msg = "[string \"luaeval\"]:1: attempt to call a nil value (field 'xyz')"
159 let msg = "[string \"luaeval\"]:1: attempt to call field 'xyz' (a nil value)"
163 \ "[string \"vim chunk\"]:1: invalid window property: `xyz'")
200 \ '[string "vim chunk"]:1: line out of range')
212 \ ? '[string "luaeval"]:1: Function called with too many arguments'
217 \ ? '[string "luaeval"]:1: lua: cannot convert value'
221 \ ['E117:', s:lua_53_or_later ? '\[string "luaeval"]:1: lua: call_vim_function failed'
303 " Test vim.buffer() with string argument.
347 let msg = "[string \"vim chunk\"]:1: method 'xyz' is not callable (a nil value)"
349 let msg = "[string \"vim chunk\"]:1: attempt to call a nil value (method 'xyz')"
351 let msg = "[string \"vim chunk\"]:1: attempt to call method 'xyz' (a nil value)"
355 \ '[string "vim chunk"]:1: wrong argument to change')
368 \ '[string "vim chunk"]:1: invalid line number')
444 \ '[string "vim chunk"]:1: invalid position')
448 call assert_fails('lua l:add("x")', '[string "vim chunk"]:1: list is locked')
449 call assert_fails('lua l:insert(2)', '[string "vim chunk"]:1: list is locked')
450 call assert_fails('lua l[9] = 1', '[string "vim chunk"]:1: list is locked')
458 let msg = "[string \"luaeval\"]:1: method 'xyz' is not callable (a nil value)"
460 let msg = "[string \"luaeval\"]:1: attempt to call a nil value (method 'xyz')"
462 let msg = "[string \"luaeval\"]:1: attempt to call method 'xyz' (a nil value)"
479 call assert_fails('lua vim.list(1)', '[string "vim chunk"]:1: table expected, got number')
480 call assert_fails('lua vim.list("x")', '[string "vim chunk"]:1: table expected, got string')
481 call assert_fails('lua vim.list(print)', '[string "vim chunk"]:1: table expected, got function')
482 call assert_fails('lua vim.list(true)', '[string "vim chunk"]:1: table expected, got boolean')
530 call assert_equal('[1, 2, [...]]', string(luaeval('l')))
564 call assert_fails('lua d[6] = 1', '[string "vim chunk"]:1: dict is locked')
572 \ ? '[string "luaeval"]:1: table has empty key'
576 call assert_fails("lua x[''] = 10", '[string "vim chunk"]:1: empty key')
583 \ '[string "vim chunk"]:1: cannot assign funcref to builtin scope')
602 call assert_fails('lua vim.dict(1)', '[string "vim chunk"]:1: table expected, got number')
603 call assert_fails('lua vim.dict("x")', '[string "vim chunk"]:1: table expected, got string')
604 call assert_fails('lua vim.dict(print)', '[string "vim chunk"]:1: table expected, got function')
605 call assert_fails('lua vim.dict(true)', '[string "vim chunk"]:1: table expected, got boolean')
630 lua b[4] = string.byte("z", 1)
633 call assert_fails('lua b[#b+1] = 0x80', '[string "vim chunk"]:1: index out of range')
637 call assert_fails('lua b:add(nil)', '[string "vim chunk"]:1: string expected, got nil')
638 call assert_fails('lua b:add(true)', '[string "vim chunk"]:1: string expected, got boolean')
639 call assert_fails('lua b:add({})', '[string "vim chunk"]:1: string expected, got table')
649 let msg = "[string \"luaeval\"]:1: method 'xyz' is not callable (a nil value)"
651 let msg = "[string \"luaeval\"]:1: attempt to call a nil value (method 'xyz')"
653 let msg = "[string \"luaeval\"]:1: attempt to call method 'xyz' (a nil value)"
660 call assert_fails('lua lb[1] = 2', '[string "vim chunk"]:1: blob is locked')
661 call assert_fails('lua lb:add("12")', '[string "vim chunk"]:1: blob is locked')
666 \ '[string "vim chunk"]:1: string expected, got table')
682 \ '[string "vim chunk"]:1: invalid function name: ')
684 \ '[string "vim chunk"]:1: invalid function name: 10')
687 \ "[string \"vim chunk\"]:1: bad argument #1 to 'funcref' (string expected, got nil)")
689 \ ['E117:', '\[string "vim chunk"]:1: cannot call funcref'])
709 call assert_equal('string', luaeval('vim.type("foo")'))
801 \ '[string "luaeval"]:1: attempt to perform arithmetic on a nil value')
803 \ "[string \"luaeval\"]:1: unexpected symbol near ']'")
829 print(string.format('str=%s, num=%d', str, num))
853 " Test :luafile printing a long string