diff options
Diffstat (limited to 'tests/lutf8lib.js')
-rw-r--r-- | tests/lutf8lib.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/lutf8lib.js b/tests/lutf8lib.js index 28a45a5..cff7472 100644 --- a/tests/lutf8lib.js +++ b/tests/lutf8lib.js @@ -4,6 +4,7 @@ const test = require('tape'); const lua = require("../src/lua.js"); const lauxlib = require("../src/lauxlib.js"); +const lualib = require("../src/lualib.js"); test('utf8.offset', function (t) { let luaCode = ` @@ -16,7 +17,7 @@ test('utf8.offset', function (t) { L = lauxlib.luaL_newstate(); - lauxlib.luaL_openlibs(L); + lualib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); @@ -48,7 +49,7 @@ test('utf8.codepoint', function (t) { L = lauxlib.luaL_newstate(); - lauxlib.luaL_openlibs(L); + lualib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); @@ -92,7 +93,7 @@ test('utf8.char', function (t) { L = lauxlib.luaL_newstate(); - lauxlib.luaL_openlibs(L); + lualib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); @@ -124,7 +125,7 @@ test('utf8.len', function (t) { L = lauxlib.luaL_newstate(); - lauxlib.luaL_openlibs(L); + lualib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); @@ -161,7 +162,7 @@ test('utf8.codes', function (t) { L = lauxlib.luaL_newstate(); - lauxlib.luaL_openlibs(L); + lualib.luaL_openlibs(L); lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); |