tests: Stabilize float format and %e in format_luav and format_string

This commit is contained in:
ZyX
2017-11-19 21:40:34 +03:00
parent 731dc82f8c
commit ebb33eddd9
3 changed files with 15 additions and 4 deletions

View File

@@ -750,7 +750,7 @@ describe('api', function()
typ = typ .. ('(val=%u)'):format(east_api_node.ivalue)
east_api_node.ivalue = nil
elseif typ == 'Float' then
typ = typ .. ('(val=%e)'):format(east_api_node.fvalue)
typ = typ .. format_string('(val=%e)', east_api_node.fvalue)
east_api_node.fvalue = nil
elseif typ == 'SingleQuotedString' or typ == 'DoubleQuotedString' then
typ = format_string('%s(val=%q)', typ, east_api_node.svalue)