mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
8 years ago
2 changed files with 6 additions and 2 deletions
@ -1,4 +1,6 @@ |
|||||
var result = 0; |
var result = 0; |
||||
if ( Math.random() <= 1 ) result += 1; |
if ( Math.random() <= 1 ) { |
||||
|
if ( Math.random() <= 1 ) result += 1; |
||||
|
} |
||||
|
|
||||
assert.equal( result, 1 ); |
assert.equal( result, 1 ); |
||||
|
@ -1,4 +1,6 @@ |
|||||
var result = 0; |
var result = 0; |
||||
if ( Math.random() <= 1 ) ++result; |
if ( Math.random() <= 1 ) { |
||||
|
if ( Math.random() <= 1 ) ++result; |
||||
|
} |
||||
|
|
||||
assert.equal( result, 1 ); |
assert.equal( result, 1 ); |
||||
|
Loading…
Reference in new issue