diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/test.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test.lua b/tests/test.lua index 99ac73a..6cb5666 100755 --- a/tests/test.lua +++ b/tests/test.lua | |||
| @@ -211,14 +211,14 @@ local escape_tests = { | |||
| 211 | local locale_tests = { | 211 | local locale_tests = { |
| 212 | function () | 212 | function () |
| 213 | os.setlocale("cs_CZ") | 213 | os.setlocale("cs_CZ") |
| 214 | json.update_locale() | 214 | json.new() |
| 215 | return "Setting locale to cs_CZ (comma separator)" | 215 | return "Setting locale to cs_CZ (comma separator)" |
| 216 | end, | 216 | end, |
| 217 | { json.encode, { 1.5 }, true, { '1.5' } }, | 217 | { json.encode, { 1.5 }, true, { '1.5' } }, |
| 218 | { json.decode, { "[ 10, \"test\" ]" }, true, { { 10, "test" } } }, | 218 | { json.decode, { "[ 10, \"test\" ]" }, true, { { 10, "test" } } }, |
| 219 | function () | 219 | function () |
| 220 | os.setlocale("C") | 220 | os.setlocale("C") |
| 221 | json.update_locale() | 221 | json.new() |
| 222 | return "Reverting locale to POSIX" | 222 | return "Reverting locale to POSIX" |
| 223 | end | 223 | end |
| 224 | } | 224 | } |
