blob: e2cf38078ef77549275df8da09fe4e1c12026ce5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- a/spec/json_encode_spec.lua
+++ b/spec/json_encode_spec.lua
@@ -131,8 +131,8 @@
end)
it('should support empty_table_as_array options', function()
- assert.are.equal('{"a": []}', rapidjson.encode({a={}}, {empty_table_as_array=true}))
- assert.are.equal('{"a": {}}', rapidjson.encode({a={}}))
+ assert.are.equal('{"a":[]}', rapidjson.encode({a={}}, {empty_table_as_array=true}))
+ assert.are.equal('{"a":{}}', rapidjson.encode({a={}}))
end)
it('should support sort_keys and pretty options', function()
assert.are.equal(
|