summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-11-29 22:47:35 +1030
committerMark Pulford <mark@kyne.com.au>2011-11-29 22:47:35 +1030
commit630bb3f16f27c72e3fc2daf3161c96f0fd9c1ba0 (patch)
tree34265a52407f5d61ca5304a4fff2b0f9f1c5753e /tests
parent83c15a39a071a5bb4bcb41385ed58cc6d8fae6de (diff)
downloadlua-cjson-630bb3f16f27c72e3fc2daf3161c96f0fd9c1ba0.tar.gz
lua-cjson-630bb3f16f27c72e3fc2daf3161c96f0fd9c1ba0.tar.bz2
lua-cjson-630bb3f16f27c72e3fc2daf3161c96f0fd9c1ba0.zip
Add workaround to handle platforms that print -nan
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/test.lua b/tests/test.lua
index d80dcf0..02d3760 100755
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -150,10 +150,6 @@ local encode_error_tests = {
150 json.refuse_invalid_numbers(false) 150 json.refuse_invalid_numbers(false)
151 return 'Setting refuse_invalid_numbers(false).' 151 return 'Setting refuse_invalid_numbers(false).'
152 end, 152 end,
153 function ()
154 print('NOTE: receiving "-nan" in the following test is ok..')
155 return
156 end,
157 { json.encode, { NaN }, true, { "nan" } }, 153 { json.encode, { NaN }, true, { "nan" } },
158 { json.encode, { Inf }, true, { "inf" } }, 154 { json.encode, { Inf }, true, { "inf" } },
159 function () 155 function ()