diff options
| author | Mark Pulford <mark@kyne.com.au> | 2011-05-10 22:46:44 +0930 |
|---|---|---|
| committer | Mark Pulford <mark@kyne.com.au> | 2011-05-10 22:46:44 +0930 |
| commit | 132e8757bc800d51058e3e1e4d2d73a0279ca0ac (patch) | |
| tree | c430b456662027b7a20a9a819940a064e7d62a14 /tests/test.lua | |
| parent | 896fb92fd5a288352d697cddf0a1869b5b955a4a (diff) | |
| download | lua-cjson-132e8757bc800d51058e3e1e4d2d73a0279ca0ac.tar.gz lua-cjson-132e8757bc800d51058e3e1e4d2d73a0279ca0ac.tar.bz2 lua-cjson-132e8757bc800d51058e3e1e4d2d73a0279ca0ac.zip | |
Remove trailing whitespace1.0.1
Diffstat (limited to '')
| -rwxr-xr-x | tests/test.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test.lua b/tests/test.lua index 4bb62be..bfa4f66 100755 --- a/tests/test.lua +++ b/tests/test.lua | |||
| @@ -43,7 +43,7 @@ local function gen_utf16_escaped() | |||
| 43 | end | 43 | end |
| 44 | end | 44 | end |
| 45 | table.insert(utf16_escaped, '"') | 45 | table.insert(utf16_escaped, '"') |
| 46 | 46 | ||
| 47 | return table.concat(utf16_escaped) | 47 | return table.concat(utf16_escaped) |
| 48 | end | 48 | end |
| 49 | 49 | ||
| @@ -120,10 +120,10 @@ local encode_table_tests = { | |||
| 120 | true, { '[null,null,"sparse test"]' } }, | 120 | true, { '[null,null,"sparse test"]' } }, |
| 121 | 121 | ||
| 122 | { json.encode, { { [1] = "one", [4] = "sparse test" } }, | 122 | { json.encode, { { [1] = "one", [4] = "sparse test" } }, |
| 123 | true, { '["one",null,null,"sparse test"]' } }, | 123 | true, { '["one",null,null,"sparse test"]' } }, |
| 124 | 124 | ||
| 125 | { json.encode, { { [1] = "one", [5] = "sparse test" } }, | 125 | { json.encode, { { [1] = "one", [5] = "sparse test" } }, |
| 126 | true, { '{"1":"one","5":"sparse test"}' } }, | 126 | true, { '{"1":"one","5":"sparse test"}' } }, |
| 127 | 127 | ||
| 128 | { json.encode, { nested5 }, true, { '[[[[["nested"]]]]]' } }, | 128 | { json.encode, { nested5 }, true, { '[[[[["nested"]]]]]' } }, |
| 129 | { json.encode, { { nested5 } }, | 129 | { json.encode, { { nested5 } }, |
