diff options
author | Jeff Ames | 2008-06-06 01:19:15 +0000 |
---|---|---|
committer | Jeff Ames | 2008-06-06 01:19:15 +0000 |
commit | fbd37c420fff59968b31dfa8b4f25b23ca72d466 (patch) | |
tree | 224d4b72f92ef7f6187cd728d9fad2c58fafc098 /OpenSim/Tests | |
parent | Mantis#1333. Thank you kindly, Mikem for a patch to (diff) | |
download | opensim-SC_OLD-fbd37c420fff59968b31dfa8b4f25b23ca72d466.zip opensim-SC_OLD-fbd37c420fff59968b31dfa8b4f25b23ca72d466.tar.gz opensim-SC_OLD-fbd37c420fff59968b31dfa8b4f25b23ca72d466.tar.bz2 opensim-SC_OLD-fbd37c420fff59968b31dfa8b4f25b23ca72d466.tar.xz |
Minor formatting cleanup.
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/OpenSim/Region/ScriptEngine/LSL_TypesTestLSLFloat.cs | 28 | ||||
-rw-r--r-- | OpenSim/Tests/OpenSim/Region/ScriptEngine/LSL_TypesTestLSLString.cs | 4 |
2 files changed, 16 insertions, 16 deletions
diff --git a/OpenSim/Tests/OpenSim/Region/ScriptEngine/LSL_TypesTestLSLFloat.cs b/OpenSim/Tests/OpenSim/Region/ScriptEngine/LSL_TypesTestLSLFloat.cs index 4af9df7..29d0e1c 100644 --- a/OpenSim/Tests/OpenSim/Region/ScriptEngine/LSL_TypesTestLSLFloat.cs +++ b/OpenSim/Tests/OpenSim/Region/ScriptEngine/LSL_TypesTestLSLFloat.cs | |||
@@ -57,7 +57,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
57 | 57 | ||
58 | LSL_Types.LSLFloat testFloat; | 58 | LSL_Types.LSLFloat testFloat; |
59 | 59 | ||
60 | foreach(KeyValuePair<int, double> number in numberSet) | 60 | foreach (KeyValuePair<int, double> number in numberSet) |
61 | { | 61 | { |
62 | testFloat = new LSL_Types.LSLFloat(number.Key); | 62 | testFloat = new LSL_Types.LSLFloat(number.Key); |
63 | Assert.That(testFloat.value, new DoubleToleranceConstraint(number.Value, _lowPrecisionTolerance)); | 63 | Assert.That(testFloat.value, new DoubleToleranceConstraint(number.Value, _lowPrecisionTolerance)); |
@@ -94,7 +94,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
94 | 94 | ||
95 | LSL_Types.LSLFloat testFloat; | 95 | LSL_Types.LSLFloat testFloat; |
96 | 96 | ||
97 | foreach(KeyValuePair<double, double> number in numberSet) | 97 | foreach (KeyValuePair<double, double> number in numberSet) |
98 | { | 98 | { |
99 | testFloat = new LSL_Types.LSLFloat(number.Key); | 99 | testFloat = new LSL_Types.LSLFloat(number.Key); |
100 | Assert.That(testFloat.value, new DoubleToleranceConstraint(number.Value, _lowPrecisionTolerance)); | 100 | Assert.That(testFloat.value, new DoubleToleranceConstraint(number.Value, _lowPrecisionTolerance)); |
@@ -131,7 +131,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
131 | 131 | ||
132 | int testNumber; | 132 | int testNumber; |
133 | 133 | ||
134 | foreach(KeyValuePair<double, int> number in numberSet) | 134 | foreach (KeyValuePair<double, int> number in numberSet) |
135 | { | 135 | { |
136 | testNumber = new LSL_Types.LSLFloat(number.Key); | 136 | testNumber = new LSL_Types.LSLFloat(number.Key); |
137 | Assert.AreEqual(number.Value, testNumber, "Converting double " + number.Key + ", expecting int " + number.Value); | 137 | Assert.AreEqual(number.Value, testNumber, "Converting double " + number.Key + ", expecting int " + number.Value); |
@@ -168,7 +168,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
168 | 168 | ||
169 | uint testNumber; | 169 | uint testNumber; |
170 | 170 | ||
171 | foreach(KeyValuePair<double, int> number in numberSet) | 171 | foreach (KeyValuePair<double, int> number in numberSet) |
172 | { | 172 | { |
173 | testNumber = new LSL_Types.LSLFloat(number.Key); | 173 | testNumber = new LSL_Types.LSLFloat(number.Key); |
174 | Assert.AreEqual(number.Value, testNumber, "Converting double " + number.Key + ", expecting uint " + number.Value); | 174 | Assert.AreEqual(number.Value, testNumber, "Converting double " + number.Key + ", expecting uint " + number.Value); |
@@ -205,7 +205,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
205 | LSL_Types.LSLFloat testFloat; | 205 | LSL_Types.LSLFloat testFloat; |
206 | bool testBool; | 206 | bool testBool; |
207 | 207 | ||
208 | foreach(double number in numberList) | 208 | foreach (double number in numberList) |
209 | { | 209 | { |
210 | testFloat = new LSL_Types.LSLFloat(number); | 210 | testFloat = new LSL_Types.LSLFloat(number); |
211 | testBool = testFloat; | 211 | testBool = testFloat; |
@@ -244,7 +244,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
244 | 244 | ||
245 | LSL_Types.LSLFloat testFloat; | 245 | LSL_Types.LSLFloat testFloat; |
246 | 246 | ||
247 | foreach(int number in numberList) | 247 | foreach (int number in numberList) |
248 | { | 248 | { |
249 | testFloat = number; | 249 | testFloat = number; |
250 | Assert.That(testFloat.value, new DoubleToleranceConstraint(number, _lowPrecisionTolerance)); | 250 | Assert.That(testFloat.value, new DoubleToleranceConstraint(number, _lowPrecisionTolerance)); |
@@ -281,7 +281,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
281 | 281 | ||
282 | LSL_Types.LSLFloat testFloat; | 282 | LSL_Types.LSLFloat testFloat; |
283 | 283 | ||
284 | foreach(KeyValuePair<string, double> number in numberSet) | 284 | foreach (KeyValuePair<string, double> number in numberSet) |
285 | { | 285 | { |
286 | testFloat = number.Key; | 286 | testFloat = number.Key; |
287 | Assert.That(testFloat.value, new DoubleToleranceConstraint(number.Value, _lowPrecisionTolerance)); | 287 | Assert.That(testFloat.value, new DoubleToleranceConstraint(number.Value, _lowPrecisionTolerance)); |
@@ -318,7 +318,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
318 | 318 | ||
319 | LSL_Types.LSLFloat testFloat; | 319 | LSL_Types.LSLFloat testFloat; |
320 | 320 | ||
321 | foreach(double number in numberList) | 321 | foreach (double number in numberList) |
322 | { | 322 | { |
323 | testFloat = number; | 323 | testFloat = number; |
324 | Assert.That(testFloat.value, new DoubleToleranceConstraint(number, _lowPrecisionTolerance)); | 324 | Assert.That(testFloat.value, new DoubleToleranceConstraint(number, _lowPrecisionTolerance)); |
@@ -355,7 +355,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
355 | 355 | ||
356 | LSL_Types.LSLFloat testFloatA, testFloatB; | 356 | LSL_Types.LSLFloat testFloatA, testFloatB; |
357 | 357 | ||
358 | foreach(double number in numberList) | 358 | foreach (double number in numberList) |
359 | { | 359 | { |
360 | testFloatA = new LSL_Types.LSLFloat(number); | 360 | testFloatA = new LSL_Types.LSLFloat(number); |
361 | testFloatB = new LSL_Types.LSLFloat(number); | 361 | testFloatB = new LSL_Types.LSLFloat(number); |
@@ -396,7 +396,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
396 | 396 | ||
397 | LSL_Types.LSLFloat testFloatA, testFloatB; | 397 | LSL_Types.LSLFloat testFloatA, testFloatB; |
398 | 398 | ||
399 | foreach(double number in numberList) | 399 | foreach (double number in numberList) |
400 | { | 400 | { |
401 | testFloatA = new LSL_Types.LSLFloat(number); | 401 | testFloatA = new LSL_Types.LSLFloat(number); |
402 | testFloatB = new LSL_Types.LSLFloat(number + 1.0); | 402 | testFloatB = new LSL_Types.LSLFloat(number + 1.0); |
@@ -438,7 +438,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
438 | LSL_Types.LSLFloat testFloat; | 438 | LSL_Types.LSLFloat testFloat; |
439 | double testNumber; | 439 | double testNumber; |
440 | 440 | ||
441 | foreach(double number in numberList) | 441 | foreach (double number in numberList) |
442 | { | 442 | { |
443 | testFloat = new LSL_Types.LSLFloat(number); | 443 | testFloat = new LSL_Types.LSLFloat(number); |
444 | 444 | ||
@@ -484,7 +484,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
484 | LSL_Types.LSLFloat testFloat; | 484 | LSL_Types.LSLFloat testFloat; |
485 | double testNumber; | 485 | double testNumber; |
486 | 486 | ||
487 | foreach(double number in numberList) | 487 | foreach (double number in numberList) |
488 | { | 488 | { |
489 | testFloat = new LSL_Types.LSLFloat(number); | 489 | testFloat = new LSL_Types.LSLFloat(number); |
490 | 490 | ||
@@ -530,7 +530,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
530 | double testNumber; | 530 | double testNumber; |
531 | LSL_Types.LSLFloat testFloat; | 531 | LSL_Types.LSLFloat testFloat; |
532 | 532 | ||
533 | foreach(double number in numberList) | 533 | foreach (double number in numberList) |
534 | { | 534 | { |
535 | testFloat = new LSL_Types.LSLFloat(number); | 535 | testFloat = new LSL_Types.LSLFloat(number); |
536 | testNumber = testFloat; | 536 | testNumber = testFloat; |
@@ -569,7 +569,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
569 | 569 | ||
570 | LSL_Types.LSLFloat testFloat; | 570 | LSL_Types.LSLFloat testFloat; |
571 | 571 | ||
572 | foreach(KeyValuePair<double, string> number in numberSet) | 572 | foreach (KeyValuePair<double, string> number in numberSet) |
573 | { | 573 | { |
574 | testFloat = new LSL_Types.LSLFloat(number.Key); | 574 | testFloat = new LSL_Types.LSLFloat(number.Key); |
575 | Assert.AreEqual(number.Value, testFloat.ToString()); | 575 | Assert.AreEqual(number.Value, testFloat.ToString()); |
diff --git a/OpenSim/Tests/OpenSim/Region/ScriptEngine/LSL_TypesTestLSLString.cs b/OpenSim/Tests/OpenSim/Region/ScriptEngine/LSL_TypesTestLSLString.cs index 83c7e77..0bba14c 100644 --- a/OpenSim/Tests/OpenSim/Region/ScriptEngine/LSL_TypesTestLSLString.cs +++ b/OpenSim/Tests/OpenSim/Region/ScriptEngine/LSL_TypesTestLSLString.cs | |||
@@ -65,7 +65,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
65 | 65 | ||
66 | LSL_Types.LSLString testString; | 66 | LSL_Types.LSLString testString; |
67 | 67 | ||
68 | foreach(KeyValuePair<double, string> number in numberSet) | 68 | foreach (KeyValuePair<double, string> number in numberSet) |
69 | { | 69 | { |
70 | testString = new LSL_Types.LSLString(new LSL_Types.LSLFloat(number.Key)); | 70 | testString = new LSL_Types.LSLString(new LSL_Types.LSLFloat(number.Key)); |
71 | Assert.AreEqual(number.Value, testString.m_string); | 71 | Assert.AreEqual(number.Value, testString.m_string); |
@@ -102,7 +102,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
102 | 102 | ||
103 | LSL_Types.LSLString testString; | 103 | LSL_Types.LSLString testString; |
104 | 104 | ||
105 | foreach(KeyValuePair<double, string> number in numberSet) | 105 | foreach (KeyValuePair<double, string> number in numberSet) |
106 | { | 106 | { |
107 | testString = (LSL_Types.LSLString) new LSL_Types.LSLFloat(number.Key); | 107 | testString = (LSL_Types.LSLString) new LSL_Types.LSLFloat(number.Key); |
108 | Assert.AreEqual(number.Value, testString.m_string); | 108 | Assert.AreEqual(number.Value, testString.m_string); |