From e6639768e4a059aeaf80e232c729dffa3b5e93ba Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 22 May 2017 23:20:02 +1000 Subject: src/lauxlib.js: Use lua_pushfstring for formatting numbers --- tests/test-suite/strings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test-suite/strings.js') diff --git a/tests/test-suite/strings.js b/tests/test-suite/strings.js index 3584a80..d7b30a8 100644 --- a/tests/test-suite/strings.js +++ b/tests/test-suite/strings.js @@ -288,7 +288,7 @@ test('[test-suite] strings: tostring', function (t) { end if tostring(0.0) == "0.0" then -- "standard" coercion float->string - -- assert('' .. 12 == '12' and 12.0 .. '' == '12.0') -- TODO: How to do this in JS ? + assert('' .. 12 == '12' and 12.0 .. '' == '12.0') assert(tostring(-1203 + 0.0) == "-1203.0") else -- compatible coercion assert(tostring(0.0) == "0") -- cgit v1.2.3-54-g00ecf From 69fdbe3590eb2ddfa970888b7b59e8a84fbda101 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 23 May 2017 00:09:21 +1000 Subject: tests/test-suite/strings.js: un-skip fixed test --- tests/test-suite/strings.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/test-suite/strings.js') diff --git a/tests/test-suite/strings.js b/tests/test-suite/strings.js index d7b30a8..c501ddd 100644 --- a/tests/test-suite/strings.js +++ b/tests/test-suite/strings.js @@ -365,8 +365,7 @@ test('[test-suite] strings: string.format', function (t) { }); -// TODO: http://lua-users.org/lists/lua-l/2016-05/msg00455.html -test('[test-suite] strings: %q', { skip: true }, function (t) { +test('[test-suite] strings: %q', function (t) { let luaCode = ` do local function checkQ (v) -- cgit v1.2.3-54-g00ecf