Revision: 3744
          http://vexi.svn.sourceforge.net/vexi/?rev=3744&view=rev
Author:   mkpg2
Date:     2009-11-04 00:20:55 +0000 (Wed, 04 Nov 2009)

Log Message:
-----------
Small additions.

Modified Paths:
--------------
    trunk/widgets/org.vexi.vunit/src/vexi/test/vunit.t
    trunk/widgets/org.vexi.widgets/src/vexi/util/decimal.t

Modified: trunk/widgets/org.vexi.vunit/src/vexi/test/vunit.t
===================================================================
--- trunk/widgets/org.vexi.vunit/src/vexi/test/vunit.t  2009-11-03 23:15:42 UTC 
(rev 3743)
+++ trunk/widgets/org.vexi.vunit/src/vexi/test/vunit.t  2009-11-04 00:20:55 UTC 
(rev 3744)
@@ -204,6 +204,9 @@
     //////////
     // Assertion stuff
     ///////
+    static.assertFalse = function(val){
+        assert(!val);
+    };
     static.assertTrue = function(val){
         assert(val);
     };

Modified: trunk/widgets/org.vexi.widgets/src/vexi/util/decimal.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/vexi/util/decimal.t      2009-11-03 
23:15:42 UTC (rev 3743)
+++ trunk/widgets/org.vexi.widgets/src/vexi/util/decimal.t      2009-11-04 
00:20:55 UTC (rev 3744)
@@ -161,6 +161,13 @@
             return ((stringA>stringB)?1:-1)*rmult;
         };
         
+        thisobj.negate = function(){
+               if(isNegative())
+                       return new decimal(value.substring(1));
+            else 
+               return new decimal("-"+value);
+        };
+        
     </js:Object>
 </vexi>
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to