Community
Participate
Working Groups
This is an example in the EDT Help for mathLib.modf. Use EUnit to run: library modfRBD y int; x, result smallFloat; function modfTest1(){@Test} x = 23.5678; try result = mathLib.modf(x, y); onException(oops AnyException) LogResult.failed("Exception"); exit; end LogResult.assertFloatEqual("modf", 0.5678005218505859, result); end function modfTest2(){@Test} LogResult.assertFloatEqual("modf", 23, y); end end eglx.javascript.JavaScriptObjectException x.signum is not a function modfRBD::modfTest1: FAILED - Exception modfRBD::modfTest2: FAILED - modf - Failed: Expected value = '23' Actual value = '0'
deferred
Brenda, if this is not in eunit.test project in cvs, please add to it and commit the changes, thanks, so it will be regression tested everytime we run eunit.test
Done.
Created attachment 208838 [details] fix for problem 1
The exception problem is fixed. The second problem is the same as bug 364216. Waiting for the discussion.
Ji Yong is right. The remaining problem is the same as 364216. We ought to take care of that problem using 364216, and close this one since the exception has been fixed.
Route to Kathy to change the testcase. If any problems, reopen it for me, thanks.
The testcases using MODF have been modified and released to CVS. The modified variations are in project org.eclipse.edt.eunit.test: api.SystemTypes.mathLibFunctions and fvt.librarySupport.TestMathLib2Lib. The exception issue has been resolved.
Verified and closed with 02/22 build