diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2024-03-09 14:57:57 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2024-03-09 14:57:57 -0700 |
commit | c324271b99eee4c621463f368914d57cd729bd9c (patch) | |
tree | 5d979d333a2d5f9c080991d5482fd5916f8579c6 /test/functional/lua/ffi_spec.lua | |
parent | 931bffbda3668ddc609fc1da8f9eb576b170aa52 (diff) | |
parent | ade1b12f49c3b3914c74847d791eb90ea90b56b7 (diff) | |
download | rneovim-c324271b99eee4c621463f368914d57cd729bd9c.tar.gz rneovim-c324271b99eee4c621463f368914d57cd729bd9c.tar.bz2 rneovim-c324271b99eee4c621463f368914d57cd729bd9c.zip |
Merge remote-tracking branch 'upstream/master' into userreg
Diffstat (limited to 'test/functional/lua/ffi_spec.lua')
-rw-r--r-- | test/functional/lua/ffi_spec.lua | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/test/functional/lua/ffi_spec.lua b/test/functional/lua/ffi_spec.lua index 3a37b18cd1..c9e8e9d4ca 100644 --- a/test/functional/lua/ffi_spec.lua +++ b/test/functional/lua/ffi_spec.lua @@ -11,7 +11,9 @@ describe('ffi.cdef', function() pending('missing LuaJIT FFI') end - eq(12, exec_lua[[ + eq( + 12, + exec_lua [[ local ffi = require('ffi') ffi.cdef('int curwin_col_off(void);') @@ -19,9 +21,12 @@ describe('ffi.cdef', function() vim.cmd('set number numberwidth=4 signcolumn=yes:4') return ffi.C.curwin_col_off() - ]]) + ]] + ) - eq(20, exec_lua[=[ + eq( + 20, + exec_lua [=[ local ffi = require('ffi') ffi.cdef[[ @@ -38,7 +43,7 @@ describe('ffi.cdef', function() char *out, size_t outlen, char *fmt, - char *opt_name, + int opt_idx, int opt_scope, int fillchar, int maxwidth, @@ -53,7 +58,7 @@ describe('ffi.cdef', function() ffi.new('char[1024]'), 1024, ffi.cast('char*', 'StatusLineOfLength20'), - nil, + -1, 0, 0, 0, @@ -61,15 +66,19 @@ describe('ffi.cdef', function() nil, nil ) - ]=]) + ]=] + ) -- Check that extern symbols are exported and accessible - eq(true, exec_lua[[ + eq( + true, + exec_lua [[ local ffi = require('ffi') ffi.cdef('uint64_t display_tick;') return ffi.C.display_tick >= 0 - ]]) + ]] + ) end) end) |