From 92b2657444928d6b1fa9e1a80c96f2f5ad79660f Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@unibas.ch> Date: Tue, 1 Nov 2022 09:50:17 +0100 Subject: [PATCH] avoid floating point accuracy edge case in unit test Unit test reportedly failed on i386 architecture --- modules/db/tests/test_linear_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/db/tests/test_linear_db.py b/modules/db/tests/test_linear_db.py index 8350c9918..dc4b79c31 100644 --- a/modules/db/tests/test_linear_db.py +++ b/modules/db/tests/test_linear_db.py @@ -183,8 +183,8 @@ class TestLinearDB(unittest.TestCase): pos_2.append(geom.Vec3(-50000.34, -32.43, -33.2222)) pos_2.append(geom.Vec3(50000.34, 32.43, 33.2222)) - pos_3.append(geom.Vec3(87.909, 65.222, 1000.555)) - pos_3.append(geom.Vec3(87.909, 65.222, 1000.555)) + pos_3.append(geom.Vec3(87.909, 65.222, 1000.556)) + pos_3.append(geom.Vec3(87.909, 65.222, 1000.556)) # get the rounded target values (the accuracy with which they) # are stored in the container) -- GitLab