Mercurial > prosody-hg
comparison spec/util_serialization_spec.lua @ 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 | f34c635c5f42 |
| children | c667887d78ad |
comparison
equal
deleted
inserted
replaced
| 9481:f34c635c5f42 | 9482:8791bfa3984a |
|---|---|
| 40 test("foobar") | 40 test("foobar") |
| 41 test("\0\1\2\3"); | 41 test("\0\1\2\3"); |
| 42 test("nödåtgärd"); | 42 test("nödåtgärd"); |
| 43 test({1,2,3,4}); | 43 test({1,2,3,4}); |
| 44 test({foo={[100]={{"bar"},{baz=1}}}}); | 44 test({foo={[100]={{"bar"},{baz=1}}}}); |
| 45 test({["goto"] = {["function"]={["do"]="keywords"}}}); | |
| 45 end); | 46 end); |
| 46 end); | 47 end); |
| 47 end); | 48 end); |
| 48 | 49 |
