Mercurial > vim
comparison src/testdir/test_lua.vim @ 17916:2e53305f2239 v8.1.1954
patch 8.1.1954: more functions can be used as a method
Commit: https://github.com/vim/vim/commit/02b31110d31e995326080807716e79e38fe501df
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 31 22:16:38 2019 +0200
patch 8.1.1954: more functions can be used as a method
Problem: More functions can be used as a method.
Solution: Allow more functions to be used as a method.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 31 Aug 2019 22:30:03 +0200 |
parents | 8e9e9124c7a2 |
children | 2a017e9dc6da |
comparison
equal
deleted
inserted
replaced
17915:50ad0353c88a | 17916:2e53305f2239 |
---|---|
34 call assert_equal('number', luaeval('vim.type(v)')) | 34 call assert_equal('number', luaeval('vim.type(v)')) |
35 call assert_equal(123.0, luaeval('v')) | 35 call assert_equal(123.0, luaeval('v')) |
36 | 36 |
37 " lua.eval with a string | 37 " lua.eval with a string |
38 lua v = vim.eval('"abc"') | 38 lua v = vim.eval('"abc"') |
39 call assert_equal('string', luaeval('vim.type(v)')) | 39 call assert_equal('string', 'vim.type(v)'->luaeval()) |
40 call assert_equal('abc', luaeval('v')) | 40 call assert_equal('abc', luaeval('v')) |
41 | 41 |
42 " lua.eval with a list | 42 " lua.eval with a list |
43 lua v = vim.eval("['a']") | 43 lua v = vim.eval("['a']") |
44 call assert_equal('list', luaeval('vim.type(v)')) | 44 call assert_equal('list', luaeval('vim.type(v)')) |