Revision: 2528 http://vexi.svn.sourceforge.net/vexi/?rev=2528&view=rev Author: clrg Date: 2007-10-29 14:32:48 -0700 (Mon, 29 Oct 2007)
Log Message: ----------- Test for floating point maths (currently fails) Added Paths: ----------- trunk/core/org.ibex.js/src_junit/test/js/exec/number/floatingpointmaths.js Added: trunk/core/org.ibex.js/src_junit/test/js/exec/number/floatingpointmaths.js =================================================================== --- trunk/core/org.ibex.js/src_junit/test/js/exec/number/floatingpointmaths.js (rev 0) +++ trunk/core/org.ibex.js/src_junit/test/js/exec/number/floatingpointmaths.js 2007-10-29 21:32:48 UTC (rev 2528) @@ -0,0 +1,7 @@ +sys.import("lib"); +sys.import("shared"); + +assertEquals(10000, 10.0/0.001); +assertEquals(0.01, 10.0*0.001); +assertEquals(0, 10.0%0.001); +assertEquals(0.05, 1.3%0.25); \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn