Skip to content

Commit

Permalink
Update muParserTest.cpp
Browse files Browse the repository at this point in the history
unit test adapted
  • Loading branch information
Ingo Berg committed Dec 11, 2024
1 parent ee2978e commit 596ab4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/muParserTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,10 @@ namespace mu
iStat += EqnTest(_T("-f1of1(-1000){m}"), 1, true);
iStat += EqnTest(_T("f4of4(0,0,0,1000){m}"), 1, true);
iStat += EqnTest(_T("2+(a*1000){m}"), 3, true);
iStat += EqnTest(_T("1n"), 1e-9, true);

// I have added a space between the number and the operator so that
// systems using libc++ can pass the test (see #123)
iStat += EqnTest(_T("1 n"), 1e-9, true);

// can postfix operators "m" und "meg" be told apart properly?
iStat += EqnTest(_T("2*3000meg+2"), 2 * 3e9 + 2, true);
Expand Down

0 comments on commit 596ab4e

Please sign in to comment.