aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-rapidjson/fix-json_encode_spec.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/lua-rapidjson/fix-json_encode_spec.patch')
-rw-r--r--community/lua-rapidjson/fix-json_encode_spec.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/lua-rapidjson/fix-json_encode_spec.patch b/community/lua-rapidjson/fix-json_encode_spec.patch
new file mode 100644
index 0000000000..e2cf38078e
--- /dev/null
+++ b/community/lua-rapidjson/fix-json_encode_spec.patch
@@ -0,0 +1,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(