Skip to content

Commit

Permalink
avoid further confusion for inplace operator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Nov 20, 2014
1 parent 8a38ee5 commit 4b5808b
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 10 deletions.
10 changes: 8 additions & 2 deletions test/js/src/arithmetic/iadd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
var one;

one = function ( a, b ) {
deepEqual( number.iadd( a, b ), a += b, a + " += " + b );
}

var x ;

x = a ;

deepEqual( number.iadd( x, b ), a += b, x + " += " + b );

} ;

test( "iadd", function () {

Expand Down
8 changes: 7 additions & 1 deletion test/js/src/arithmetic/iaddone.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
var one ;

one = function ( n ) {
deepEqual ( number . iaddone ( n ) , n += 1 , n + " += " + 1 ) ;

var x ;

x = n ;

deepEqual ( number . iaddone ( x ) , n += 1 , x + " += " + 1 ) ;

} ;

test ( "iaddone" , function ( ) {
Expand Down
10 changes: 8 additions & 2 deletions test/js/src/arithmetic/idiv.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
var one;

one = function ( a, b ) {
deepEqual( number.idiv( a, b ), a /= b, a + " /= " + b );
}

var x ;

x = a ;

deepEqual( number.idiv( x, b ), a /= b, x + " /= " + b );

} ;

test( "idiv", function () {

Expand Down
10 changes: 8 additions & 2 deletions test/js/src/arithmetic/imul.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
var one;

one = function ( a, b ) {
deepEqual( number.imul( a, b ), a *= b, a + " *= " + b );
}

var x ;

x = a ;

deepEqual( number.imul( x, b ), a *= b, x + " *= " + b );

} ;

test( "imul", function () {

Expand Down
10 changes: 8 additions & 2 deletions test/js/src/arithmetic/isub.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
var one;

one = function ( a, b ) {
deepEqual( number.isub( a, b ), a -= b, a + " -= " + b );
}

var x ;

x = a ;

deepEqual( number.isub( x, b ), a -= b, x + " -= " + b );

} ;

test( "isub", function () {

Expand Down
8 changes: 7 additions & 1 deletion test/js/src/arithmetic/isubone.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
var one ;

one = function ( n ) {
deepEqual ( number . isubone ( n ) , n -= 1 , n + " -= " + 1 ) ;

var x ;

x = n ;

deepEqual ( number . isubone ( x ) , n -= 1 , x + " -= " + 1 ) ;

} ;

test ( "isubone" , function ( ) {
Expand Down

0 comments on commit 4b5808b

Please sign in to comment.