Skip to content

Commit

Permalink
Test for assignment with target wrapped in two sets of parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Nov 19, 2023
1 parent 27a7501 commit c1a3074
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ info: |
2. Return true.
---*/

var y = 1;
var y = 2;

(y)--;
assert.sameValue(y, 1);

((y))--;
assert.sameValue(y, 0);
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ info: |
var y = 1;

(y)++;

assert.sameValue(y, 2);

((y))++;
assert.sameValue(y, 3);

0 comments on commit c1a3074

Please sign in to comment.