diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-03-30 11:58:09 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-03-30 14:39:19 +0200 |
commit | 3813f2d43054708bab7221a5ca74a0183a2ebcaf (patch) | |
tree | 2e27bc81114099cbf94b18e2c139843e66db6b53 /tests/lutf8lib.js | |
parent | 456ab7b69f88859683c60cc2261e70d6dbadd8e8 (diff) | |
download | fengari-3813f2d43054708bab7221a5ca74a0183a2ebcaf.tar.gz fengari-3813f2d43054708bab7221a5ca74a0183a2ebcaf.tar.bz2 fengari-3813f2d43054708bab7221a5ca74a0183a2ebcaf.zip |
8-bit only in lstrlib
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 7832bae..e32409b 100644 --- a/tests/lutf8lib.js +++ b/tests/lutf8lib.js @@ -3,6 +3,7 @@ const test = require('tape'); const tests = require("./tests.js"); +const lua = require("../src/lua.js"); const lapi = require("../src/lapi.js"); const lauxlib = require("../src/lauxlib.js"); const linit = require('../src/linit.js'); @@ -20,7 +21,7 @@ test('utf8.offset', function (t) { linit.luaL_openlibs(L); - lauxlib.luaL_loadstring(L, luaCode); + lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); }, "Lua program loaded without error"); @@ -52,7 +53,7 @@ test('utf8.codepoint', function (t) { linit.luaL_openlibs(L); - lauxlib.luaL_loadstring(L, luaCode); + lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); }, "Lua program loaded without error"); @@ -96,7 +97,7 @@ test('utf8.char', function (t) { linit.luaL_openlibs(L); - lauxlib.luaL_loadstring(L, luaCode); + lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); }, "Lua program loaded without error"); @@ -128,7 +129,7 @@ test('utf8.len', function (t) { linit.luaL_openlibs(L); - lauxlib.luaL_loadstring(L, luaCode); + lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); }, "Lua program loaded without error"); @@ -165,7 +166,7 @@ test('utf8.codes', function (t) { linit.luaL_openlibs(L); - lauxlib.luaL_loadstring(L, luaCode); + lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); }, "Lua program loaded without error"); |