aboutsummaryrefslogtreecommitdiff
path: root/spec/persist_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/persist_spec.lua')
-rw-r--r--spec/persist_spec.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/persist_spec.lua b/spec/persist_spec.lua
index dccb0ec4..734b2a4e 100644
--- a/spec/persist_spec.lua
+++ b/spec/persist_spec.lua
@@ -36,6 +36,14 @@ foo = {
36]], persist.save_from_table_to_string({foo = {1, 2, 3, 4}, bar = {baz = "string"}})) 36]], persist.save_from_table_to_string({foo = {1, 2, 3, 4}, bar = {baz = "string"}}))
37 end) 37 end)
38 38
39 it("table with a keyword key (#947)", function()
40 assert.are.same([[
41bar = {
42 ["function"] = "foo"
43}
44]], persist.save_from_table_to_string({bar = {["function"] = "foo"}}))
45 end)
46
39 it("strings with quotes", function() 47 it("strings with quotes", function()
40 assert.are.same([[ 48 assert.are.same([[
41bar = "a \\backslash?" 49bar = "a \\backslash?"