diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lbaselib.js | 2 | ||||
-rw-r--r-- | tests/lvm.js | 2 | ||||
-rw-r--r-- | tests/test-suite/constructs.js | 1 | ||||
-rw-r--r-- | tests/test-suite/literals.js | 4 | ||||
-rw-r--r-- | tests/test-suite/vararg.js | 1 |
5 files changed, 0 insertions, 10 deletions
diff --git a/tests/lbaselib.js b/tests/lbaselib.js index 2594cd9..fcd8356 100644 --- a/tests/lbaselib.js +++ b/tests/lbaselib.js @@ -326,8 +326,6 @@ test('xpcall', function (t) { }, "JS Lua program ran without error"); - console.log(lua.lua_tojsstring(L, -1)); - t.ok( lua.lua_tojsstring(L, -1).startsWith("Something's wrong:"), "msgh was called and modified the error" diff --git a/tests/lvm.js b/tests/lvm.js index a6ab125..226583b 100644 --- a/tests/lvm.js +++ b/tests/lvm.js @@ -451,8 +451,6 @@ test('SETTABLE, GETTABLE', function (t) { lua.lua_call(L, 0, -1); }, "Program executed without errors"); - console.log(L.stack[L.top - 1]); - t.deepEqual( L.stack[L.top - 1].value.strong.get(1).value.jsstring(), "hello", diff --git a/tests/test-suite/constructs.js b/tests/test-suite/constructs.js index d260843..20a1210 100644 --- a/tests/test-suite/constructs.js +++ b/tests/test-suite/constructs.js @@ -371,7 +371,6 @@ if (false) { cases[1] = basiccases for i = 2, level do cases[i] = createcases(i) end - print("+") local prog = [[if %s then IX = true end; return %s]] diff --git a/tests/test-suite/literals.js b/tests/test-suite/literals.js index a4eb32d..d18d557 100644 --- a/tests/test-suite/literals.js +++ b/tests/test-suite/literals.js @@ -349,13 +349,11 @@ test("[test-suite] literals: long strings", function (t) { let luaCode = `b = "001234567890123456789012345678901234567891234567890123456789012345678901234567890012345678901234567890123456789012345678912345678901234567890123456789012345678900123456789012345678901234567890123456789123456789012345678901234567890123456789001234567890123456789012345678901234567891234567890123456789012345678901234567890012345678901234567890123456789012345678912345678901234567890123456789012345678900123456789012345678901234567890123456789123456789012345678901234567890123456789001234567890123456789012345678901234567891234567890123456789012345678901234567890012345678901234567890123456789012345678912345678901234567890123456789012345678900123456789012345678901234567890123456789123456789012345678901234567890123456789001234567890123456789012345678901234567891234567890123456789012345678901234567890012345678901234567890123456789012345678912345678901234567890123456789012345678900123456789012345678901234567890123456789123456789012345678901234567890123456789" assert(string.len(b) == 960) prog = [=[ -print('+') a1 = [["this is a 'string' with several 'quotes'"]] a2 = "'quotes'" assert(string.find(a1, a2) == 34) -print('+') a1 = [==[temp = [[an arbitrary value]]; ]==] assert(load(a1))() @@ -363,7 +361,6 @@ assert(temp == 'an arbitrary value') -- long strings -- b = "001234567890123456789012345678901234567891234567890123456789012345678901234567890012345678901234567890123456789012345678912345678901234567890123456789012345678900123456789012345678901234567890123456789123456789012345678901234567890123456789001234567890123456789012345678901234567891234567890123456789012345678901234567890012345678901234567890123456789012345678912345678901234567890123456789012345678900123456789012345678901234567890123456789123456789012345678901234567890123456789001234567890123456789012345678901234567891234567890123456789012345678901234567890012345678901234567890123456789012345678912345678901234567890123456789012345678900123456789012345678901234567890123456789123456789012345678901234567890123456789001234567890123456789012345678901234567891234567890123456789012345678901234567890012345678901234567890123456789012345678912345678901234567890123456789012345678900123456789012345678901234567890123456789123456789012345678901234567890123456789" assert(string.len(b) == 960) -print('+') a = [[00123456789012345678901234567890123456789123456789012345678901234567890123456789 00123456789012345678901234567890123456789123456789012345678901234567890123456789 @@ -394,7 +391,6 @@ assert(string.sub(a, 1, 40) == string.sub(b, 1, 40)) x = 1 ]=] -print('+') x = nil dostring(prog) assert(x) diff --git a/tests/test-suite/vararg.js b/tests/test-suite/vararg.js index 3b147bc..f693870 100644 --- a/tests/test-suite/vararg.js +++ b/tests/test-suite/vararg.js @@ -52,7 +52,6 @@ test("[test-suite] vararg: testing vararg", function (t) { local t = {1, 10} function t:f (...) local arg = {...}; return self[...]+#arg end assert(t:f(1,4) == 3 and t:f(2) == 11) - print('+') lim = 20 local i, a = 1, {} |