diff --git a/test/box/call.result b/test/box/call.result index 70928be52241af11dc485180a16a0ed46ab3f95a..515118a7c7c020c840ce8a3fa38e4d1c33369c4d 100644 --- a/test/box/call.result +++ b/test/box/call.result @@ -4,7 +4,10 @@ box.schema.user.create('test', { password = 'test' }) box.schema.user.grant('test', 'execute,read,write', 'universe') --- ... -function f1() return 'testing', 1, false, -1, 1.123, 1e123, nil end +exp_notation = 1e123 +--- +... +function f1() return 'testing', 1, false, -1, 1.123, math.abs(exp_notation - 1e123) < 0.1, nil end --- ... f1() @@ -14,7 +17,7 @@ f1() - false - -1 - 1.123 -- 1e+123 +- true - null ... call f1() @@ -24,7 +27,7 @@ call f1() - [False] - [-1] - [1.123] -- [1e+123] +- [True] - [None] ... f1=nil diff --git a/test/box/call.test.py b/test/box/call.test.py index 7d64899a6a11d196bf2499ca89bc7f76d1b6fa36..a73fec928eff2d87d4cd003fbf9bc397af3ce10f 100644 --- a/test/box/call.test.py +++ b/test/box/call.test.py @@ -4,7 +4,9 @@ import sys admin("box.schema.user.create('test', { password = 'test' })") admin("box.schema.user.grant('test', 'execute,read,write', 'universe')") sql.authenticate('test', 'test') -admin("function f1() return 'testing', 1, false, -1, 1.123, 1e123, nil end") +# workaround for gh-770 centos 6 float representation +admin('exp_notation = 1e123') +admin("function f1() return 'testing', 1, false, -1, 1.123, math.abs(exp_notation - 1e123) < 0.1, nil end") admin("f1()") sql("call f1()") admin("f1=nil")