summaryrefslogtreecommitdiff
path: root/tests/test-suite
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-29 16:45:51 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-29 16:45:51 +1000
commit5ad20228dd320f9fd3c250fbd246f531a7f4b5cf (patch)
tree6a7a03cb2ceb2b9ad1e03fd1302a1761a63a1d0a /tests/test-suite
parente356991b0500d282198c70d14a30a8216361c081 (diff)
downloadfengari-5ad20228dd320f9fd3c250fbd246f531a7f4b5cf.tar.gz
fengari-5ad20228dd320f9fd3c250fbd246f531a7f4b5cf.tar.bz2
fengari-5ad20228dd320f9fd3c250fbd246f531a7f4b5cf.zip
tests/test-suite/inprogress/utf8.js: join min/max tests together
Both need 'x'
Diffstat (limited to 'tests/test-suite')
-rw-r--r--tests/test-suite/inprogress/utf8.js26
1 files changed, 2 insertions, 24 deletions
diff --git a/tests/test-suite/inprogress/utf8.js b/tests/test-suite/inprogress/utf8.js
index 252ac8b..e3f63d1 100644
--- a/tests/test-suite/inprogress/utf8.js
+++ b/tests/test-suite/inprogress/utf8.js
@@ -355,30 +355,8 @@ test("[test-suite] utf8: minimum and maximum values for each sequence size", fun
x = "日本語a-4\\0éó"
check(x, {26085, 26412, 35486, 97, 45, 52, 0, 233, 243})
- `, L;
-
- t.plan(2);
-
- t.doesNotThrow(function () {
-
- L = lauxlib.luaL_newstate();
-
- lualib.luaL_openlibs(L);
-
- lauxlib.luaL_loadstring(L, lua.to_luastring(prefix + luaCode));
-
- }, "Lua program loaded without error");
-
- t.doesNotThrow(function () {
-
- lua.lua_call(L, 0, -1);
-
- }, "Lua program ran without error");
-});
-
-test("[test-suite] utf8: Supplementary Characters", function (t) {
- let luaCode = `
+ -- Supplementary Characters
check("𣲷𠜎𠱓𡁻𠵼ab𠺢",
{0x23CB7, 0x2070E, 0x20C53, 0x2107B, 0x20D7C, 0x61, 0x62, 0x20EA2,})
@@ -397,7 +375,7 @@ test("[test-suite] utf8: Supplementary Characters", function (t) {
end
end
`, L;
-
+
t.plan(2);
t.doesNotThrow(function () {