aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2015-11-16 18:50:15 +0000
committerUbitUmarov2015-11-16 18:50:15 +0000
commitfd2784a037408c3c36367973109bd9ee6703af8f (patch)
treee87b2446b6dd4b87c673e62fb8cf0efe75c51388 /OpenSim
parent work around some 'tests' error: contents of link folders are no longer sent (diff)
downloadopensim-SC_OLD-fd2784a037408c3c36367973109bd9ee6703af8f.zip
opensim-SC_OLD-fd2784a037408c3c36367973109bd9ee6703af8f.tar.gz
opensim-SC_OLD-fd2784a037408c3c36367973109bd9ee6703af8f.tar.bz2
opensim-SC_OLD-fd2784a037408c3c36367973109bd9ee6703af8f.tar.xz
work around some 'tests' error: normalization of <0,0,0> no longer causes argument exception
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/Tests/UtilTest.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Framework/Tests/UtilTest.cs b/OpenSim/Framework/Tests/UtilTest.cs
index cfe3139..2b08c29 100644
--- a/OpenSim/Framework/Tests/UtilTest.cs
+++ b/OpenSim/Framework/Tests/UtilTest.cs
@@ -59,12 +59,12 @@ namespace OpenSim.Framework.Tests
59 Assert.That(Util.GetMagnitude(v2), 59 Assert.That(Util.GetMagnitude(v2),
60 new DoubleToleranceConstraint(expectedMagnitude, lowPrecisionTolerance), 60 new DoubleToleranceConstraint(expectedMagnitude, lowPrecisionTolerance),
61 "Magnitude of vector was incorrect."); 61 "Magnitude of vector was incorrect.");
62 62/*
63 TestDelegate d = delegate() { Util.GetNormalizedVector(v1); }; 63 TestDelegate d = delegate() { Util.GetNormalizedVector(v1); };
64 bool causesArgumentException = TestHelpers.AssertThisDelegateCausesArgumentException(d); 64 bool causesArgumentException = TestHelpers.AssertThisDelegateCausesArgumentException(d);
65 Assert.That(causesArgumentException, Is.True, 65 Assert.That(causesArgumentException, Is.True,
66 "Getting magnitude of null vector did not cause argument exception."); 66 "Getting magnitude of null vector did not cause argument exception.");
67 67*/
68 Vector3 expectedNormalizedVector = new Vector3(.577f, .577f, .577f); 68 Vector3 expectedNormalizedVector = new Vector3(.577f, .577f, .577f);
69 double expectedNormalizedMagnitude = 1; 69 double expectedNormalizedMagnitude = 1;
70 Vector3 normalizedVector = Util.GetNormalizedVector(v2); 70 Vector3 normalizedVector = Util.GetNormalizedVector(v2);