summaryrefslogtreecommitdiff
path: root/tests/lutf8lib.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lutf8lib.js')
-rw-r--r--tests/lutf8lib.js15
1 files changed, 5 insertions, 10 deletions
diff --git a/tests/lutf8lib.js b/tests/lutf8lib.js
index cff7472..ae40d3c 100644
--- a/tests/lutf8lib.js
+++ b/tests/lutf8lib.js
@@ -10,7 +10,7 @@ test('utf8.offset', function (t) {
let luaCode = `
return utf8.offset("( ͡° ͜ʖ ͡° )", 5)
`, L;
-
+
t.plan(3);
t.doesNotThrow(function () {
@@ -34,7 +34,6 @@ test('utf8.offset', function (t) {
7,
"Correct element(s) on the stack"
);
-
});
@@ -42,7 +41,7 @@ test('utf8.codepoint', function (t) {
let luaCode = `
return utf8.codepoint("( ͡° ͜ʖ ͡° )", 5, 8)
`, L;
-
+
t.plan(5);
t.doesNotThrow(function () {
@@ -78,7 +77,6 @@ test('utf8.codepoint', function (t) {
860,
"Correct element(s) on the stack"
);
-
});
@@ -86,7 +84,7 @@ test('utf8.char', function (t) {
let luaCode = `
return utf8.char(40, 32, 865, 176, 32, 860, 662, 32, 865, 176, 32, 41)
`, L;
-
+
t.plan(3);
t.doesNotThrow(function () {
@@ -110,7 +108,6 @@ test('utf8.char', function (t) {
"( ͡° ͜ʖ ͡° )",
"Correct element(s) on the stack"
);
-
});
@@ -118,7 +115,7 @@ test('utf8.len', function (t) {
let luaCode = `
return utf8.len("( ͡° ͜ʖ ͡° )")
`, L;
-
+
t.plan(3);
t.doesNotThrow(function () {
@@ -142,7 +139,6 @@ test('utf8.len', function (t) {
12,
"Correct element(s) on the stack"
);
-
});
@@ -155,7 +151,7 @@ test('utf8.codes', function (t) {
end
return results
`, L;
-
+
t.plan(3);
t.doesNotThrow(function () {
@@ -179,5 +175,4 @@ test('utf8.codes', function (t) {
"[1,40] [2,32] [3,865] [5,176] [7,32] [8,860] [10,662] [12,32] [13,865] [15,176] [17,32] [18,41] ",
"Correct element(s) on the stack"
);
-
});