Revision: 4868 http://sourceforge.net/p/vexi/code/4868 Author: clrg Date: 2016-06-20 16:36:07 +0000 (Mon, 20 Jun 2016) Log Message: ----------- Adjusted test for math.max/min with more than 2 arguments.
Modified Paths: -------------- branches/vexi3/org.vexi-library.js/src/test/java/test/js/exec/number/testMath.js Modified: branches/vexi3/org.vexi-library.js/src/test/java/test/js/exec/number/testMath.js =================================================================== --- branches/vexi3/org.vexi-library.js/src/test/java/test/js/exec/number/testMath.js 2016-06-20 16:35:25 UTC (rev 4867) +++ branches/vexi3/org.vexi-library.js/src/test/java/test/js/exec/number/testMath.js 2016-06-20 16:36:07 UTC (rev 4868) @@ -1,13 +1,12 @@ sys.import("lib"); assertEquals(sys.math.abs(-3.2),3.2); - sys.log.info("** SKIPPING ASSERTS <= sys.math.max with > 2 args **"); - //assert(sys.math.max(111,22,3) == 111); - //assertEquals(sys.math.min(111,22,3),(is_nav4_ || is_ie5_1_ ? 22 : 3)); - //assertEquals(sys.math.max(3,22,111),(is_nav4_ || is_ie5_1_ ? 22 : 111)); + assert(sys.math.max(111,22,3) == 111); + assertEquals(sys.math.min(111,22,3),3); + assertEquals(sys.math.max(3,22,111),111); - //assert(sys.math.max(1,2) == 2 && sys.math.max(1,2,3,4) == (is_nav4_ || is_ie5_1_ ? 2 : 4)); - //assert(sys.math.min(1,2) == 1 && sys.math.min(1,2,3,0) == (is_nav4_ || is_ie5_1_ ? 1 : 0)); + assert((sys.math.max(1,2) == 2) && (sys.math.max(1,2,3,4) == 4)); + assert((sys.math.min(1,2) == 1) && (sys.math.min(1,2,3,0) == 0)); assert(sys.math.random() > 0 && 1 >= sys.math.random()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohomanageengine _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn