From dcc12eb28a96cf2c69bf7eb15efcc4232117a054 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Fri, 21 Mar 2014 20:25:59 -0400 Subject: [PATCH] Intel compiler hates floats --- Base/test/TestVector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Base/test/TestVector.cpp b/Base/test/TestVector.cpp index b3d2176..b550751 100644 --- a/Base/test/TestVector.cpp +++ b/Base/test/TestVector.cpp @@ -168,8 +168,8 @@ TEST(VectorBase, Normalization) { float fv[2] = {1, 0}; FasTC::VectorBase v2f (fv); v2f.Normalize(); - EXPECT_EQ(v2f[0], 1); - EXPECT_EQ(v2f[1], 0); + EXPECT_NEAR(v2f[0], 1, kEpsilon); + EXPECT_NEAR(v2f[1], 0, kEpsilon); // Normalized vector should be sqrt(2) for each axis, although // this can't be represented as integers...