diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/test/v3dmath_tut.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/test/v3dmath_tut.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/linden/indra/test/v3dmath_tut.cpp b/linden/indra/test/v3dmath_tut.cpp index 106b1dc..a501531 100644 --- a/linden/indra/test/v3dmath_tut.cpp +++ b/linden/indra/test/v3dmath_tut.cpp | |||
@@ -386,7 +386,7 @@ namespace tut | |||
386 | void v3dmath_object::test<16>() | 386 | void v3dmath_object::test<16>() |
387 | { | 387 | { |
388 | F64 x1 = 1.23, y1 = 2.0, z1 = 4.; | 388 | F64 x1 = 1.23, y1 = 2.0, z1 = 4.; |
389 | char buf[] = "1.23 2. 4"; | 389 | std::string buf("1.23 2. 4"); |
390 | LLVector3d vec3D, vec3Da(x1,y1,z1); | 390 | LLVector3d vec3D, vec3Da(x1,y1,z1); |
391 | LLVector3d::parseVector3d(buf, &vec3D); | 391 | LLVector3d::parseVector3d(buf, &vec3D); |
392 | ensure_equals("1:parseVector3d: failed " , vec3D, vec3Da); | 392 | ensure_equals("1:parseVector3d: failed " , vec3D, vec3Da); |
@@ -461,7 +461,7 @@ namespace tut | |||
461 | F64 x1 = 1111.232222; | 461 | F64 x1 = 1111.232222; |
462 | F64 y1 = 2222222222.22; | 462 | F64 y1 = 2222222222.22; |
463 | F64 z1 = 422222222222.0; | 463 | F64 z1 = 422222222222.0; |
464 | char buf[] = "1111.232222 2222222222.22 422222222222"; | 464 | std::string buf("1111.232222 2222222222.22 422222222222"); |
465 | LLVector3d vec3Da, vec3Db(x1,y1,z1); | 465 | LLVector3d vec3Da, vec3Db(x1,y1,z1); |
466 | LLVector3d::parseVector3d(buf, &vec3Da); | 466 | LLVector3d::parseVector3d(buf, &vec3Da); |
467 | ensure_equals("1:parseVector3 failed", vec3Da, vec3Db); | 467 | ensure_equals("1:parseVector3 failed", vec3Da, vec3Db); |
@@ -509,6 +509,9 @@ namespace tut | |||
509 | template<> template<> | 509 | template<> template<> |
510 | void v3dmath_object::test<24>() | 510 | void v3dmath_object::test<24>() |
511 | { | 511 | { |
512 | #if LL_WINDOWS && _MSC_VER < 1400 | ||
513 | skip_fail("This fails on VS2003!"); | ||
514 | #else | ||
512 | F64 x = 10., y = 20., z = -15.; | 515 | F64 x = 10., y = 20., z = -15.; |
513 | F64 angle1, angle2; | 516 | F64 angle1, angle2; |
514 | LLVector3d vec3Da(x,y,z), vec3Db(x,y,z); | 517 | LLVector3d vec3Da(x,y,z), vec3Db(x,y,z); |
@@ -523,5 +526,6 @@ namespace tut | |||
523 | F64 angle = vec3Db*vec3Da; | 526 | F64 angle = vec3Db*vec3Da; |
524 | angle = acos(angle); | 527 | angle = acos(angle); |
525 | ensure("2:angle_between: Fail ", (angle == angle2)); | 528 | ensure("2:angle_between: Fail ", (angle == angle2)); |
529 | #endif | ||
526 | } | 530 | } |
527 | } | 531 | } |