Changeset 11430
- Timestamp:
- 10/08/14 17:39:03 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicDataAnalysisExpressionTreeInterpreterTest.cs
r11171 r11430 339 339 Evaluate(interpreter, ds, "(xor 1.0 2.0 3.0)", 0, 1.0); 340 340 Evaluate(interpreter, ds, "(xor (log -1.0))", 0, -1.0); 341 Evaluate(interpreter, ds, "(xor (log -1.0) 1.0)", 0, 1.0); 341 Evaluate(interpreter, ds, "(xor (log -1.0) 1.0)", 0, 1.0); 342 342 343 343 // sin, cos, tan … … 478 478 Assert.IsFalse(double.IsNaN(actual) && !double.IsNaN(expected)); 479 479 Assert.IsFalse(!double.IsNaN(actual) && double.IsNaN(expected)); 480 Assert.AreEqual(expected, actual, 1.0E-12, expr); 480 if (!double.IsNaN(actual) && !double.IsNaN(expected)) 481 Assert.AreEqual(expected, actual, 1.0E-12, expr); 481 482 } 482 483 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis-3.4/SymbolicDataAnalysisExpressionTreeInterpreterTest.cs
r11171 r11430 338 338 Assert.IsFalse(double.IsNaN(actual) && !double.IsNaN(expected)); 339 339 Assert.IsFalse(!double.IsNaN(actual) && double.IsNaN(expected)); 340 Assert.AreEqual(expected, actual, 1.0E-12, expr); 340 if (!double.IsNaN(actual) && !double.IsNaN(expected)) 341 Assert.AreEqual(expected, actual, 1.0E-12, expr); 341 342 } 342 343 }
Note: See TracChangeset
for help on using the changeset viewer.