mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
feat(lua): make sure require'bit' always works, even with PUC lua 5.1
This commit is contained in:
@@ -338,3 +338,11 @@ describe('os.getenv', function()
|
||||
eq(value, funcs.luaeval('os.getenv("XTEST_1")'))
|
||||
end)
|
||||
end)
|
||||
|
||||
-- "bit" module is always available, regardless if nvim is built with
|
||||
-- luajit or PUC lua 5.1.
|
||||
describe('bit module', function()
|
||||
it('works', function()
|
||||
eq (9, exec_lua [[ return require'bit'.band(11,13) ]])
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user