diff options
Diffstat (limited to 'test/built-ins/Math/random/S15.8.2.14_A1.js')
-rw-r--r-- | test/built-ins/Math/random/S15.8.2.14_A1.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/built-ins/Math/random/S15.8.2.14_A1.js b/test/built-ins/Math/random/S15.8.2.14_A1.js index 10cc9f466..4b5db856b 100644 --- a/test/built-ins/Math/random/S15.8.2.14_A1.js +++ b/test/built-ins/Math/random/S15.8.2.14_A1.js @@ -14,15 +14,15 @@ description: > // CHECK#1 for (var i = 0; i < 100; i++) { - var val = Math.random(); + var val = Math.random(); - assert.sameValue( - typeof val, 'number', 'should not produce a non-numeric value: ' + val - ); - assert.notSameValue(val, NaN, 'should not produce NaN'); + assert.sameValue( + typeof val, 'number', 'should not produce a non-numeric value: ' + val + ); + assert.notSameValue(val, NaN, 'should not produce NaN'); - if (val < 0 || val >= 1) - { - $ERROR("#1: Math.random() = " + val); - } + if (val < 0 || val >= 1) + { + $ERROR("#1: Math.random() = " + val); + } } |