diff options
Diffstat (limited to 'lib/tests/misc.nix')
-rw-r--r-- | lib/tests/misc.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix index 682b1a379fc..49336b8b963 100644 --- a/lib/tests/misc.nix +++ b/lib/tests/misc.nix @@ -950,13 +950,18 @@ runTests { }; testToLuaAttrsetWithSpaceInKey = { - expr = generators.toLua {} { "some space and double-quote (\")" = generators.mkLuaInline ''"abc" .. "def"''; }; + expr = generators.toLua {} { "some space and double-quote (\")" = 42; }; expected = '' { - ["some space and double-quote (\")"] = ("abc" .. "def") + ["some space and double-quote (\")"] = 42 }''; }; + testToLuaWithoutMultiline = { + expr = generators.toLua { multiline = false; } [ 41 43 ]; + expected = ''{ 41, 43 }''; + }; + testToLuaBasicExample = { expr = generators.toLua {} { cmd = [ "typescript-language-server" "--stdio" ]; |