From 1f5d3cfd281a1ee05abab42e1bed86b49c371157 Mon Sep 17 00:00:00 2001
From: Sulverus <sulverus@gmail.com>
Date: Tue, 7 Apr 2015 14:24:40 +0300
Subject: [PATCH] gh-770 call.test centos 6 fix

---
 test/box/call.result  | 9 ++++++---
 test/box/call.test.py | 4 +++-
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/test/box/call.result b/test/box/call.result
index 70928be522..515118a7c7 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 7d64899a6a..a73fec928e 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")
-- 
GitLab