summaryrefslogtreecommitdiff
path: root/tests/lutf8lib.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lutf8lib.js')
-rw-r--r--tests/lutf8lib.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/lutf8lib.js b/tests/lutf8lib.js
index 4df498c..9449a93 100644
--- a/tests/lutf8lib.js
+++ b/tests/lutf8lib.js
@@ -5,7 +5,6 @@ const tests = require("./tests.js");
const lua = require("../src/lua.js");
const lauxlib = require("../src/lauxlib.js");
-const linit = require('../src/linit.js');
test('utf8.offset', function (t) {
let luaCode = `
@@ -18,7 +17,7 @@ test('utf8.offset', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));
@@ -50,7 +49,7 @@ test('utf8.codepoint', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));
@@ -94,7 +93,7 @@ test('utf8.char', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));
@@ -126,7 +125,7 @@ test('utf8.len', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));
@@ -163,7 +162,7 @@ test('utf8.codes', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));