aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-11 22:50:45 +0200
committerKim Alvefur <zash@zash.se>2018-10-11 22:50:45 +0200
commita796f87cc399939d436046c12c7bc5e634bf7bcc (patch)
tree3bd431993019e794cbe776f613c02a97e5938927
parent69f91fa214e6fc7743039c61f2aeed23b376d684 (diff)
downloadprosody-a796f87cc399939d436046c12c7bc5e634bf7bcc.tar.gz
prosody-a796f87cc399939d436046c12c7bc5e634bf7bcc.zip
util.serialization: Test table keys that are Lua keywords
-rw-r--r--spec/util_serialization_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/util_serialization_spec.lua b/spec/util_serialization_spec.lua
index 8783e636..52075bc2 100644
--- a/spec/util_serialization_spec.lua
+++ b/spec/util_serialization_spec.lua
@@ -42,6 +42,7 @@ describe("util.serialization", function ()
test("nödåtgärd");
test({1,2,3,4});
test({foo={[100]={{"bar"},{baz=1}}}});
+ test({["goto"] = {["function"]={["do"]="keywords"}}});
end);
end);
end);