aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-rapidjson/fix-json_encode_spec.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-05-24 23:52:31 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-24 23:54:32 +0200
commit15074a08cdd46a9fd6b03833fa482878bd2c7475 (patch)
tree83943d20b3ee741012041a18a82cd5c9afa98284 /community/lua-rapidjson/fix-json_encode_spec.patch
parent0ef7aaf539dabc484c407800aa7c19789adb54c8 (diff)
downloadaports-15074a08cdd46a9fd6b03833fa482878bd2c7475.tar.bz2
aports-15074a08cdd46a9fd6b03833fa482878bd2c7475.tar.xz
community/lua-rapidjson: upgrade to 0.5.1
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(