aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test/v3dmath_tut.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:11 -0500
committerJacek Antonelli2008-08-15 23:45:11 -0500
commit215f423cbe18fe9ca14a26caef918d303bad28ff (patch)
tree0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/test/v3dmath_tut.cpp
parentSecond Life viewer sources 1.18.3.5-RC (diff)
downloadmeta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to 'linden/indra/test/v3dmath_tut.cpp')
-rw-r--r--linden/indra/test/v3dmath_tut.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/linden/indra/test/v3dmath_tut.cpp b/linden/indra/test/v3dmath_tut.cpp
index 2f5ea8e..1f6dc14 100644
--- a/linden/indra/test/v3dmath_tut.cpp
+++ b/linden/indra/test/v3dmath_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-03 4 * @date 2007-03
5 * @brief v3dmath test cases. 5 * @brief v3dmath test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,9 +28,11 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
35#include "linden_common.h"
32#include "lltut.h" 36#include "lltut.h"
33#include "llquaternion.h" 37#include "llquaternion.h"
34#include "m3math.h" 38#include "m3math.h"
@@ -273,9 +277,6 @@ namespace tut
273 template<> template<> 277 template<> template<>
274 void v3dmath_object::test<12>() 278 void v3dmath_object::test<12>()
275 { 279 {
276#if (LL_RELEASE && LL_LINUX)
277 skip_fail("Doesn't work under Linux -- FIX ME!");
278#endif
279 F64 x1 = 1., y1 = 2., z1 = -1.1; 280 F64 x1 = 1., y1 = 2., z1 = -1.1;
280 F64 x2 = 1.2, y2 = 2.5, z2 = 1.; 281 F64 x2 = 1.2, y2 = 2.5, z2 = 1.;
281 F64 val1, val2, val3; 282 F64 val1, val2, val3;
@@ -286,7 +287,10 @@ namespace tut
286 val3 = x1*y2-x2*y1; 287 val3 = x1*y2-x2*y1;
287 ensure("1:operator% failed",(val1 == vec3Db.mdV[VX]) && (val2 == vec3Db.mdV[VY]) && (val3 == vec3Db.mdV[VZ])); 288 ensure("1:operator% failed",(val1 == vec3Db.mdV[VX]) && (val2 == vec3Db.mdV[VY]) && (val3 == vec3Db.mdV[VZ]));
288 vec3D %= vec3Da; 289 vec3D %= vec3Da;
289 ensure_equals("2:operator%= failed",vec3D,vec3Db); 290 ensure("2:operator%= failed",
291 is_approx_equal(vec3D.mdV[VX],vec3Db.mdV[VX]) &&
292 is_approx_equal(vec3D.mdV[VY],vec3Db.mdV[VY]) &&
293 is_approx_equal(vec3D.mdV[VZ],vec3Db.mdV[VZ]) );
290 } 294 }
291 295
292 template<> template<> 296 template<> template<>