Changeset

9482:8791bfa3984a

util.serialization: Test table keys that are Lua keywords
author Kim Alvefur <zash@zash.se>
date Thu, 11 Oct 2018 22:50:45 +0200
parents 9481:f34c635c5f42
children 9483:903e0cfd4cc9
files spec/util_serialization_spec.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/spec/util_serialization_spec.lua	Thu Oct 11 22:48:08 2018 +0200
+++ b/spec/util_serialization_spec.lua	Thu Oct 11 22:50:45 2018 +0200
@@ -42,6 +42,7 @@
 			test("nödåtgärd");
 			test({1,2,3,4});
 			test({foo={[100]={{"bar"},{baz=1}}}});
+			test({["goto"] = {["function"]={["do"]="keywords"}}});
 		end);
 	end);
 end);