Skip to content

Commit

Permalink
Regression test #262
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuszgromada committed May 30, 2022
1 parent e8feb70 commit 396e165
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
19 changes: 16 additions & 3 deletions CURRENT/c-sharp/tests-and-release/4-Unit-Tests/ExpressionTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* @(#)ExpressionTest.cs 5.0.5 2022-05-29
* @(#)ExpressionTest.cs 5.0.6 2022-05-30
*
* MathParser.org-mXparser DUAL LICENSE AGREEMENT as of date 2022-05-22
* The most up-to-date license is available at the below link:
Expand Down Expand Up @@ -199,7 +199,7 @@ namespace org.mariuszgromada.math.mxparser.test {
* <a href="https://play.google.com/store/apps/details?id=org.mathparser.scalar.pro" target="_blank">Scalar Pro</a><br>
* <a href="https://mathspace.pl" target="_blank">MathSpace.pl</a><br>
*
* @version 5.0.5
* @version 5.0.6
*
*/
[TestClass]
Expand Down Expand Up @@ -22320,6 +22320,19 @@ public void TestExpr1359() {
TestCommonTools.consolePrintTestExprEnd(value, reg, testResult, testExp);
Assert.IsTrue(testResult);
}
[TestMethod]
public void TestExpr1360() {
TestCommonTools.testExprSettingsInit();
bool testResult = false;
String expStr = "Bell(999999*9999999)";
TestCommonTools.consolePrintTestExprStart(1360, expStr);
Expression testExp = new Expression(expStr);
double value = testExp.calculate();
double reg = Double.NaN;
if (Double.IsNaN(value))
testResult = true;
TestCommonTools.consolePrintTestExprEnd(value, reg, testResult, testExp);
Assert.IsTrue(testResult);
}
}

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* @(#)ExpressionTest.java 5.0.5 2022-05-29
* @(#)ExpressionTest.java 5.0.6 2022-05-30
*
* MathParser.org-mXparser DUAL LICENSE AGREEMENT as of date 2022-05-22
* The most up-to-date license is available at the below link:
Expand Down Expand Up @@ -204,7 +204,7 @@
* <a href="https://play.google.com/store/apps/details?id=org.mathparser.scalar.pro" target="_blank">Scalar Pro</a><br>
* <a href="https://mathspace.pl" target="_blank">MathSpace.pl</a><br>
*
* @version 5.0.5
* @version 5.0.6
*
*/
public final class ExpressionTest {
Expand Down Expand Up @@ -22299,4 +22299,18 @@ public void testExpr1359() {
TestCommonTools.consolePrintTestExprEnd(value, reg, testResult, testExp);
Assertions.assertTrue(testResult);
}
@Test
public void testExpr1360() {
TestCommonTools.testExprSettingsInit();
boolean testResult = false;
String expStr = "Bell(999999*9999999)";
TestCommonTools.consolePrintTestExprStart(1360, expStr);
Expression testExp = new Expression(expStr);
double value = testExp.calculate();
double reg = Double.NaN;
if (Double.isNaN(value))
testResult = true;
TestCommonTools.consolePrintTestExprEnd(value, reg, testResult, testExp);
Assertions.assertTrue(testResult);
}
}

0 comments on commit 396e165

Please sign in to comment.