viml/parser/expressions: Create tests for latest additions

This commit is contained in:
ZyX
2017-10-15 19:06:41 +03:00
parent 8178ba2871
commit c286155bfa
4 changed files with 1519 additions and 6 deletions

View File

@@ -352,7 +352,14 @@ format_luav = function(v, indent)
end
end
ret = ret .. indent .. '}'
elseif type(v) == 'number' then
if v % 1 == 0 then
ret = ('%d'):format(v)
else
ret = ('%e'):format(v)
end
else
print(type(v))
-- Not implemented yet
assert(false)
end