aboutsummaryrefslogtreecommitdiff
path: root/tests/lvm.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lvm.js')
-rw-r--r--tests/lvm.js58
1 files changed, 29 insertions, 29 deletions
diff --git a/tests/lvm.js b/tests/lvm.js
index 226583b..209329e 100644
--- a/tests/lvm.js
+++ b/tests/lvm.js
@@ -11,7 +11,7 @@ test('LOADK, RETURN', function (t) {
local a = "hello world"
return a
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -33,7 +33,7 @@ test('MOVE', function (t) {
local b = a
return b
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -54,7 +54,7 @@ test('Binary op', function (t) {
local b = 10
return a + b, a - b, a * b, a / b, a % b, a^b, a // b, a & b, a | b, a ~ b, a << b, a >> b
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -76,7 +76,7 @@ test('Unary op, LOADBOOL', function (t) {
local b = false
return -a, not b, ~a
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -97,7 +97,7 @@ test('NEWTABLE', function (t) {
local a = {}
return a
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -122,7 +122,7 @@ test('CALL', function (t) {
return c
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -152,7 +152,7 @@ test('Multiple return', function (t) {
return c, d, e
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -176,7 +176,7 @@ test('TAILCALL', function (t) {
return f(1,2)
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -200,7 +200,7 @@ test('VARARG', function (t) {
return f(1,2,3)
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -222,7 +222,7 @@ test('LE, JMP', function (t) {
return a >= b
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -244,7 +244,7 @@ test('LT', function (t) {
return a > b
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -266,7 +266,7 @@ test('EQ', function (t) {
return a == b
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -289,7 +289,7 @@ test('TESTSET (and)', function (t) {
return a and b
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -312,7 +312,7 @@ test('TESTSET (or)', function (t) {
return a or b
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -339,7 +339,7 @@ test('TEST (true)', function (t) {
return "goodbye"
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -366,7 +366,7 @@ test('TEST (false)', function (t) {
return "goodbye"
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -392,7 +392,7 @@ test('FORPREP, FORLOOP (int)', function (t) {
return total
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -418,7 +418,7 @@ test('FORPREP, FORLOOP (float)', function (t) {
return total
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -443,7 +443,7 @@ test('SETTABLE, GETTABLE', function (t) {
return t
`, L;
-
+
t.plan(3);
t.doesNotThrow(function () {
@@ -477,7 +477,7 @@ test('SETUPVAL, GETUPVAL', function (t) {
return f()
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -502,7 +502,7 @@ test('SETTABUP, GETTABUP', function (t) {
return t
`, L;
-
+
t.plan(3);
t.doesNotThrow(function () {
@@ -535,7 +535,7 @@ test('SELF', function (t) {
return t:get()
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -557,7 +557,7 @@ test('SETLIST', function (t) {
return t
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -583,7 +583,7 @@ test('Variable SETLIST', function (t) {
return t
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -605,7 +605,7 @@ test('Long SETLIST', function (t) {
return t
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -627,7 +627,7 @@ test('Long SETLIST', function (t) {
//
// return t
// `, L;
-//
+//
// t.plan(1);
//
//
@@ -667,7 +667,7 @@ test('TFORCALL, TFORLOOP', function (t) {
return r
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {
@@ -691,7 +691,7 @@ test('LEN', function (t) {
return #t, #t2, #s
`, L;
-
+
t.plan(4);
t.doesNotThrow(function () {
@@ -723,7 +723,7 @@ test('CONCAT', function (t) {
let luaCode = `
return "hello " .. 2 .. " you"
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {