mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
tests: Stabilize float format and %e in format_luav and format_string
This commit is contained in:
@@ -375,7 +375,7 @@ local function eastnode2lua(pstate, eastnode, checked_nodes)
|
||||
elseif typ == 'Integer' then
|
||||
typ = typ .. ('(val=%u)'):format(tonumber(eastnode.data.num.value))
|
||||
elseif typ == 'Float' then
|
||||
typ = typ .. ('(val=%e)'):format(tonumber(eastnode.data.flt.value))
|
||||
typ = typ .. format_string('(val=%e)', tonumber(eastnode.data.flt.value))
|
||||
elseif typ == 'SingleQuotedString' or typ == 'DoubleQuotedString' then
|
||||
if eastnode.data.str.value == nil then
|
||||
typ = typ .. '(val=NULL)'
|
||||
|
||||
Reference in New Issue
Block a user