diff options
author | daurnimator <quae@daurnimator.com> | 2017-12-10 02:22:47 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-12-10 02:36:36 +1100 |
commit | a946df6302452323706f715a28029c63f766d1db (patch) | |
tree | 971f4f82ecb648dc08a96e1a1a25bc7ef1598a0c /tests/lvm.js | |
parent | fa8ba4f04623f66962c9fa2a502dd8d51a3eefa6 (diff) | |
download | fengari-a946df6302452323706f715a28029c63f766d1db.tar.gz fengari-a946df6302452323706f715a28029c63f766d1db.tar.bz2 fengari-a946df6302452323706f715a28029c63f766d1db.zip |
tests/: Fix linter complaints
Diffstat (limited to 'tests/lvm.js')
-rw-r--r-- | tests/lvm.js | 58 |
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 () { |