aboutsummaryrefslogtreecommitdiff
path: root/tests/test-suite
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-26 21:47:54 +1000
committerBenoit Giannangeli <giann008@gmail.com>2017-04-26 14:00:02 +0200
commit6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2 (patch)
treed60c55ad8a4621f1a339e6f240675bd32059b347 /tests/test-suite
parentf93607f954c002b251fba4e0b85493e0b2b619b4 (diff)
downloadfengari-6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2.tar.gz
fengari-6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2.tar.bz2
fengari-6fdfa3b88c043b124eca4f91c4d1e7e3cc7046b2.zip
Export luaL_openlibs from lauxlib.js
Diffstat (limited to 'tests/test-suite')
-rw-r--r--tests/test-suite/strings.js37
1 files changed, 18 insertions, 19 deletions
diff --git a/tests/test-suite/strings.js b/tests/test-suite/strings.js
index 0129a4b..471f6d0 100644
--- a/tests/test-suite/strings.js
+++ b/tests/test-suite/strings.js
@@ -5,7 +5,6 @@ const test = require('tape');
const lapi = require("../../src/lapi.js");
const lauxlib = require("../../src/lauxlib.js");
const lua = require('../../src/lua.js');
-const linit = require('../../src/linit.js');
const checkerror = `
@@ -44,7 +43,7 @@ test('[test-suite] strings: string comparisons', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -86,7 +85,7 @@ test('[test-suite] strings: string.sub', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -124,7 +123,7 @@ test('[test-suite] strings: string.find', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -156,7 +155,7 @@ test('[test-suite] strings: string.len and #', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -213,7 +212,7 @@ test('[test-suite] strings: string.byte/string.char', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -250,7 +249,7 @@ test('[test-suite] strings: repetitions with separator', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -302,7 +301,7 @@ test('[test-suite] strings: tostring', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -349,7 +348,7 @@ test('[test-suite] strings: string.format', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -390,7 +389,7 @@ test('[test-suite] strings: %q', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -417,7 +416,7 @@ test('[test-suite] strings: embedded zeros error', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -460,7 +459,7 @@ test('[test-suite] strings: format x tostring', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -497,7 +496,7 @@ test('[test-suite] strings: longest number that can be formatted', function (t)
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -546,7 +545,7 @@ test('[test-suite] strings: large numbers for format', function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -603,7 +602,7 @@ test("[test-suite] strings: 'format %a %A'", function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -643,7 +642,7 @@ test("[test-suite] strings: errors in format", function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -694,7 +693,7 @@ test("[test-suite] strings: table.concat", function (t) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -751,7 +750,7 @@ if (false) {
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));
@@ -783,7 +782,7 @@ test("[test-suite] strings: bug in Lua 5.3.2: 'gmatch' iterator does not work ac
L = lauxlib.luaL_newstate();
- linit.luaL_openlibs(L);
+ lauxlib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(checkerror + luaCode));