aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/World/Terrain/Tests/TerrainTest.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-10-27 14:27:45 +0000
committerJustin Clarke Casey2008-10-27 14:27:45 +0000
commit0d69e06779e23f10aba1a6bc38c1074ce3e133fc (patch)
tree9202255aa4450b50410bf990e5718df2efcf4bc0 /OpenSim/Region/Environment/Modules/World/Terrain/Tests/TerrainTest.cs
parentUpdate svn properties, minor formatting cleanup. (diff)
downloadopensim-SC_OLD-0d69e06779e23f10aba1a6bc38c1074ce3e133fc.zip
opensim-SC_OLD-0d69e06779e23f10aba1a6bc38c1074ce3e133fc.tar.gz
opensim-SC_OLD-0d69e06779e23f10aba1a6bc38c1074ce3e133fc.tar.bz2
opensim-SC_OLD-0d69e06779e23f10aba1a6bc38c1074ce3e133fc.tar.xz
* Temporarily revert terrain changes in r6976 and reinstate unit test from r6977.
* If a change is going to affect a unit test, then please could we change the unit test at the same time? Otherwise this will never get done * It also seems a bad idea to disable tests which start failing unless there's a very good reason
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Terrain/Tests/TerrainTest.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Terrain/Tests/TerrainTest.cs56
1 files changed, 28 insertions, 28 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/Tests/TerrainTest.cs b/OpenSim/Region/Environment/Modules/World/Terrain/Tests/TerrainTest.cs
index 4d9cf61..5b4bc8c 100644
--- a/OpenSim/Region/Environment/Modules/World/Terrain/Tests/TerrainTest.cs
+++ b/OpenSim/Region/Environment/Modules/World/Terrain/Tests/TerrainTest.cs
@@ -34,34 +34,34 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.Tests
34 [TestFixture] 34 [TestFixture]
35 public class TerrainTest 35 public class TerrainTest
36 { 36 {
37// [Test] 37 [Test]
38// public void BrushTest() 38 public void BrushTest()
39// { 39 {
40// TerrainChannel map = new TerrainChannel(256, 256); 40 TerrainChannel map = new TerrainChannel(256, 256);
41// bool[,] allowMask = new bool[map.Width,map.Height]; 41 bool[,] allowMask = new bool[map.Width,map.Height];
42// int x; 42 int x;
43// int y; 43 int y;
44// for (x=0; x<map.Width; x++) 44 for (x=0; x<map.Width; x++)
45// { 45 {
46// for (y=0; y<map.Height; y++) 46 for (y=0; y<map.Height; y++)
47// { 47 {
48// allowMask[x,y] = true; 48 allowMask[x,y] = true;
49// } 49 }
50// } 50 }
51// 51
52// ITerrainPaintableEffect effect = new RaiseSphere(); 52 ITerrainPaintableEffect effect = new RaiseSphere();
53// 53
54// effect.PaintEffect(map, allowMask, 128.0, 128.0, 23.0, 100, 0.1); 54 effect.PaintEffect(map, allowMask, 128.0, 128.0, 23.0, 100, 0.1);
55// Assert.That(map[128, 128] > 0.0, "Raise brush not raising values."); 55 Assert.That(map[128, 128] > 0.0, "Raise brush not raising values.");
56// Assert.That(map[0, 128] > 0.0, "Raise brush lowering edge values."); 56 Assert.That(map[0, 128] > 0.0, "Raise brush lowering edge values.");
57// 57
58// map = new TerrainChannel(256, 256); 58 map = new TerrainChannel(256, 256);
59// effect = new LowerSphere(); 59 effect = new LowerSphere();
60// 60
61// effect.PaintEffect(map, allowMask, 128.0, 128.0, -1, 100, 0.1); 61 effect.PaintEffect(map, allowMask, 128.0, 128.0, -1, 100, 0.1);
62// Assert.That(map[128, 128] < 0.0, "Lower not lowering values."); 62 Assert.That(map[128, 128] < 0.0, "Lower not lowering values.");
63// Assert.That(map[0, 128] < 0.0, "Lower brush affecting edge values."); 63 Assert.That(map[0, 128] < 0.0, "Lower brush affecting edge values.");
64// } 64 }
65 65
66 [Test] 66 [Test]
67 public void TerrainChannelTest() 67 public void TerrainChannelTest()