summaryrefslogtreecommitdiff
path: root/indra/llmath/tests/v3dmath_test.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2024-10-10 17:06:08 +0300
committerGitHub <noreply@github.com>2024-10-10 17:06:08 +0300
commitd69ad11a8d0d1a3b02ff75fdec7e2b230a526abc (patch)
treede6035b1b6379d6ef79260e3ce8c9e5cfb75767d /indra/llmath/tests/v3dmath_test.cpp
parent3091985d31e1ccf9aba159dec4f2d5ea31723ce0 (diff)
parentd5218c05219a6bddb63d752a9df3b5d6fe1e3cf7 (diff)
Merge branch 'develop' into maxim/lua-nearby-avatars
Diffstat (limited to 'indra/llmath/tests/v3dmath_test.cpp')
-rw-r--r--indra/llmath/tests/v3dmath_test.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/indra/llmath/tests/v3dmath_test.cpp b/indra/llmath/tests/v3dmath_test.cpp
index db08419012..36ad1067a2 100644
--- a/indra/llmath/tests/v3dmath_test.cpp
+++ b/indra/llmath/tests/v3dmath_test.cpp
@@ -504,14 +504,11 @@ namespace tut
template<> template<>
void v3dmath_object::test<24>()
{
-#if LL_WINDOWS && _MSC_VER < 1400
- skip("This fails on VS2003!");
-#else
F64 x = 10., y = 20., z = -15.;
F64 angle1, angle2;
LLVector3d vec3Da(x,y,z), vec3Db(x,y,z);
angle1 = angle_between(vec3Da, vec3Db);
- ensure("1:angle_between: Fail ", (0 == angle1));
+ ensure_approximately_equals_range("1:angle_between: Fail ", angle1, 0., 1.5e-8);
F64 x1 = -1., y1 = -20., z1 = -1.;
vec3Da.clearVec();
vec3Da.setVec(x1,y1,z1);
@@ -520,12 +517,6 @@ namespace tut
vec3Da.normVec();
F64 angle = vec3Db*vec3Da;
angle = acos(angle);
-#if LL_WINDOWS && _MSC_VER > 1900
- skip("This fails on VS2017!");
-#else
- ensure("2:angle_between: Fail ", (angle == angle2));
-#endif
-
-#endif
+ ensure_equals("2:angle_between: Fail ", angle, angle2);
}
}