summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-22 23:20:02 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-23 00:52:04 +1000
commite6639768e4a059aeaf80e232c729dffa3b5e93ba (patch)
tree6e0e67b5281de24d92b588e56f4a715001f5e4fa /tests
parent128ae8cc451126ee7201de7efb6cc0c39fb1a2b4 (diff)
downloadfengari-e6639768e4a059aeaf80e232c729dffa3b5e93ba.tar.gz
fengari-e6639768e4a059aeaf80e232c729dffa3b5e93ba.tar.bz2
fengari-e6639768e4a059aeaf80e232c729dffa3b5e93ba.zip
src/lauxlib.js: Use lua_pushfstring for formatting numbers
Diffstat (limited to 'tests')
-rw-r--r--tests/test-suite/strings.js2
1 files changed, 1 insertions, 1 deletions
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")