Changeset 17306
- Timestamp:
- 10/03/19 14:42:10 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis-3.4/IntervalTest.cs
r17302 r17306 166 166 Assert.AreEqual(new Interval(-2, 0), Interval.CubicRoot(new Interval(-8, 0))); 167 167 } 168 169 [TestMethod] 170 [TestCategory("Problems.DataAnalysis")] 171 [TestProperty("Time", "short")] 172 public void TestIntervalAbsoluteOperator() { 173 Assert.AreEqual(new Interval(2, 2), Interval.Absolute(new Interval(-2, -2))); 174 Assert.AreEqual(new Interval(5, 5), Interval.Absolute(new Interval(5, 5))); 175 Assert.AreEqual(new Interval(2, 8), Interval.Absolute(new Interval(2, 8))); 176 Assert.AreEqual(new Interval(5, 14), Interval.Absolute(new Interval(-14, -5))); 177 Assert.AreEqual(new Interval(2, 7), Interval.Absolute(new Interval(-2, 7))); 178 Assert.AreEqual(new Interval(2, 22), Interval.Absolute(new Interval(-22, -2))); 179 Assert.AreEqual(new Interval(6, 22), Interval.Absolute(new Interval(-22, 6))); 180 Assert.AreEqual(new Interval(0, 0), Interval.Absolute(new Interval(0, 0))); 181 Assert.AreEqual(new Interval(0, 2), Interval.Absolute(new Interval(-2, 0))); 182 Assert.AreEqual(new Interval(0, 2), Interval.Absolute(new Interval(0, 2))); 183 } 168 184 } 169 185 }
Note: See TracChangeset
for help on using the changeset viewer.