diff --git a/test/built-ins/Math/abs/S15.8.2.1_A2.js b/test/built-ins/Math/abs/S15.8.2.1_A2.js index 1f1eaa7e955994b62020a0070731e456b450f9ec..aa62299e605dd5211ca7a5d4ef11e9a8a1109c57 100644 --- a/test/built-ins/Math/abs/S15.8.2.1_A2.js +++ b/test/built-ins/Math/abs/S15.8.2.1_A2.js @@ -7,9 +7,4 @@ es5id: 15.8.2.1_A2 description: Checking if Math.abs(-0) equals to +0 ---*/ -// CHECK#1 -var x = -0; -if (Math.abs(x) !== +0) -{ - $ERROR("#1: 'var x=-0; Math.abs(x) !== +0'"); -} +assert.sameValue(Math.abs(-0), 0); diff --git a/test/built-ins/Math/acos/S15.8.2.2_A4.js b/test/built-ins/Math/acos/S15.8.2.2_A4.js index 87e3ff1f2e8b3a88edbbe0f124e4ab9dc9fd4122..738a3b1445132eeb7e12852eb2ca5e2c44216ca6 100644 --- a/test/built-ins/Math/acos/S15.8.2.2_A4.js +++ b/test/built-ins/Math/acos/S15.8.2.2_A4.js @@ -7,9 +7,4 @@ es5id: 15.8.2.2_A4 description: Checking if Math.acos(1) equals to +0 ---*/ -// CHECK#1 -var x = 1; -if (Math.acos(x) !== +0) -{ - $ERROR("#1: 'var x = 1; Math.acos(x) !== +0'"); -} +assert.sameValue(Math.acos(1), 0); diff --git a/test/built-ins/Math/asin/S15.8.2.3_A4.js b/test/built-ins/Math/asin/S15.8.2.3_A4.js index 8b21a283781e22d3e0482187841322b5ad62b3b1..29d8055140804b95daded5a3868796cc57b3307c 100644 --- a/test/built-ins/Math/asin/S15.8.2.3_A4.js +++ b/test/built-ins/Math/asin/S15.8.2.3_A4.js @@ -7,9 +7,4 @@ es5id: 15.8.2.3_A4 description: Checking if Math.asin(+0) equals +0 ---*/ -// CHECK#1 -var x = +0; -if (Math.asin(x) !== +0) -{ - $ERROR("#1: 'var x = +0; Math.asin(x) !== +0'"); -} +assert.sameValue(Math.asin(0), 0); diff --git a/test/built-ins/Math/asin/S15.8.2.3_A5.js b/test/built-ins/Math/asin/S15.8.2.3_A5.js index 3c2188075816926eb1fb5c76f32b66e2f200735f..b5e8e7c6ba94dc32842832c11c9952e842958de8 100644 --- a/test/built-ins/Math/asin/S15.8.2.3_A5.js +++ b/test/built-ins/Math/asin/S15.8.2.3_A5.js @@ -7,9 +7,4 @@ es5id: 15.8.2.3_A5 description: Checking if Math.asin(-0) equals to -0 ---*/ -// CHECK#1 -var x = -0; -if (Math.asin(x) !== -0) -{ - $ERROR("#1: 'var x = -0; Math.asin(x) !== -0'"); -} +assert.sameValue(Math.asin(-0), -0); diff --git a/test/built-ins/Math/atan/S15.8.2.4_A2.js b/test/built-ins/Math/atan/S15.8.2.4_A2.js index cc04a648b06309247442515766a417a4fa166357..2d0e39fe8686f90aa438cc95cade69a56773b2d9 100644 --- a/test/built-ins/Math/atan/S15.8.2.4_A2.js +++ b/test/built-ins/Math/atan/S15.8.2.4_A2.js @@ -7,9 +7,4 @@ es5id: 15.8.2.4_A2 description: Checking if Math.atan(+0) equals to +0 ---*/ -// CHECK#1 -var x = +0; -if (Math.atan(x) !== +0) -{ - $ERROR("#1: 'var x = +0; Math.atan(x) !== +0'"); -} +assert.sameValue(Math.atan(0), 0); diff --git a/test/built-ins/Math/atan/S15.8.2.4_A3.js b/test/built-ins/Math/atan/S15.8.2.4_A3.js index 069ea8a8d2380c3c9b5a853c73e1a56f8824bb10..d2dc13a3be46892818833bd48cf26480a316685c 100644 --- a/test/built-ins/Math/atan/S15.8.2.4_A3.js +++ b/test/built-ins/Math/atan/S15.8.2.4_A3.js @@ -7,9 +7,4 @@ es5id: 15.8.2.4_A3 description: Checking if Math.atan(-0) equals to -0 ---*/ -// CHECK#1 -var x = -0; -if (Math.atan(x) !== -0) -{ - $ERROR("#1: 'var x = -0; Math.atan(x) !== -0'"); -} +assert.sameValue(Math.atan(-0), -0); diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A14.js b/test/built-ins/Math/atan2/S15.8.2.5_A14.js index 1827f23f30728179e9684d8df9cd7ea89ba41be1..51cbb27ff90fd2dfe542a99fd16888b56b4c3b61 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A14.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A14.js @@ -19,6 +19,5 @@ var ynum = 3; for (var i = 0; i < ynum; i++) { - if (Math.atan2(y[i],x) !== +0) - $ERROR("#1: Math.atan2(" + y[i] + ", " + x + ") !== +0"); + assert.sameValue(Math.atan2(y[i], x), 0, y[i]); } diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A16.js b/test/built-ins/Math/atan2/S15.8.2.5_A16.js index 4fb2ba1195556087ba01442a14bbd8b7705adbc3..19f2509a17384a43e5e3e76b9680a22e0af7592b 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A16.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A16.js @@ -19,6 +19,9 @@ var ynum = 3; for (var i = 0; i < ynum; i++) { - if (Math.atan2(y[i],x) !== -0) - $ERROR("#1: Math.atan2(" + y[i] + ", " + x + ") !== -0"); + assert.sameValue( + Math.atan2(y[i], x), + -0, + "(" + y[i] + ", Infinity)" + ); } diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A4.js b/test/built-ins/Math/atan2/S15.8.2.5_A4.js index ce1101ad1ca55b48251bea9259f5bf547db3aec7..ef663e63ffe122333d82f5f215f1ffb440e8e248 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A4.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A4.js @@ -17,6 +17,5 @@ var xnum = 3; for (var i = 0; i < xnum; i++) { - if (Math.atan2(y,x[i]) !== +0) - $ERROR("#1: Math.atan2(" + y + ", " + x[i] + ") !== +0"); + assert.sameValue(Math.atan2(y, x[i]), 0, x[i]); } diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A5.js b/test/built-ins/Math/atan2/S15.8.2.5_A5.js index aafdb801b5a5aba39a70d32fcdb5e5322aa3792e..3d8ac5bd1aeaa76a6a952a8c100ec2641021f6aa 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A5.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A5.js @@ -7,8 +7,4 @@ es5id: 15.8.2.5_A5 description: Checking if Math.atan2(y,x) is +0, where y is +0 and x is +0 ---*/ -// CHECK#1 -var y = +0; -var x = +0; -if (Math.atan2(y,x) !== +0) - $ERROR("#1: Math.atan2(" + y + ", " + x + ") !== +0"); +assert.sameValue(Math.atan2(0, 0), 0); diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A8.js b/test/built-ins/Math/atan2/S15.8.2.5_A8.js index d7eb8357945b87a432af99198094a640c359bb03..64dc40028f8fe35e6f6c851866abbfee9135ad4f 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A8.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A8.js @@ -17,6 +17,9 @@ var xnum = 3; for (var i = 0; i < xnum; i++) { - if (Math.atan2(y,x[i]) !== -0) - $ERROR("#1: Math.atan2(" + y + ", " + x[i] + ") !== -0"); + assert.sameValue( + Math.atan2(y, x[i]), + -0, + "(-0, " + x[i] + ")" + ); } diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A9.js b/test/built-ins/Math/atan2/S15.8.2.5_A9.js index fc892e706aec58480cf287df86252c4b1d9daab0..8b0c1da04a15351f1673cc142a1f731bcc53d7fa 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A9.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A9.js @@ -7,8 +7,4 @@ es5id: 15.8.2.5_A9 description: Checking if Math.atan2(y,x) is -0, where y is -0 and x is +0 ---*/ -// CHECK#1 -var y = -0; -var x = +0; -if (Math.atan2(y,x) !== -0) - $ERROR("#1: Math.atan2(" + y + ", " + x + ") !== -0"); +assert.sameValue(Math.atan2(-0, 0), -0); diff --git a/test/built-ins/Math/ceil/S15.8.2.6_A2.js b/test/built-ins/Math/ceil/S15.8.2.6_A2.js index f4c6542011db2f4f91aa50283bdecbb49889dd0e..e0d0b96120fc61ba03c5b2251c53ad29ca9425af 100644 --- a/test/built-ins/Math/ceil/S15.8.2.6_A2.js +++ b/test/built-ins/Math/ceil/S15.8.2.6_A2.js @@ -7,9 +7,4 @@ es5id: 15.8.2.6_A2 description: Checking if Math.ceil(x) is +0, where x is +0 ---*/ -// CHECK#1 -var x = +0; -if (Math.ceil(x) !== +0) -{ - $ERROR("#1: 'var x = +0; Math.ceil(x) !== +0'"); -} +assert.sameValue(Math.ceil(0), 0); diff --git a/test/built-ins/Math/ceil/S15.8.2.6_A3.js b/test/built-ins/Math/ceil/S15.8.2.6_A3.js index 80c10cfc80121db741a64532a39bf45468358b7f..4f06ec58f9f2c7c7e19acc68a24b04c84c6ccfde 100644 --- a/test/built-ins/Math/ceil/S15.8.2.6_A3.js +++ b/test/built-ins/Math/ceil/S15.8.2.6_A3.js @@ -7,9 +7,4 @@ es5id: 15.8.2.6_A3 description: Checking if Math.ceil(x) is -0, where x is -0 ---*/ -// CHECK#1 -var x = -0; -if (Math.ceil(x) !== -0) -{ - $ERROR("#1: 'var x = -0; Math.ceil(x) !== -0'"); -} +assert.sameValue(Math.ceil(-0), -0); diff --git a/test/built-ins/Math/ceil/S15.8.2.6_A6.js b/test/built-ins/Math/ceil/S15.8.2.6_A6.js index 5665ab10562401e49d594f5aacd71e4ae056647b..067dffe6994326838e809bdda8390cebac39491a 100644 --- a/test/built-ins/Math/ceil/S15.8.2.6_A6.js +++ b/test/built-ins/Math/ceil/S15.8.2.6_A6.js @@ -9,23 +9,6 @@ description: > than -1 ---*/ -// CHECK#1 -var x = -0.000000000000001; -if (Math.ceil(x) !== -0) -{ - $ERROR("#1: 'var x = -0.000000000000001; Math.ceil(x) !== -0'"); -} - -// CHECK#2 -var x = -0.999999999999999; -if (Math.ceil(x) !== -0) -{ - $ERROR("#2: 'var x = -0.999999999999999; Math.ceil(x) !== -0'"); -} - -// CHECK#3 -var x = -0.5; -if (Math.ceil(x) !== -0) -{ - $ERROR("#3: 'var x = -0.5; Math.ceil(x) !== -0'"); -} +assert.sameValue(Math.ceil(-0.000000000000001), -0, "-0.000000000000001"); +assert.sameValue(Math.ceil(-0.999999999999999), -0, "-0.999999999999999"); +assert.sameValue(Math.ceil(-0.5), -0, "-0.5"); diff --git a/test/built-ins/Math/exp/S15.8.2.8_A5.js b/test/built-ins/Math/exp/S15.8.2.8_A5.js index 4a26d608510e42c4c4acf1f6a4bec31da29d2129..d2db7ced9dac617ac1374a6373d2fd4650a385e1 100644 --- a/test/built-ins/Math/exp/S15.8.2.8_A5.js +++ b/test/built-ins/Math/exp/S15.8.2.8_A5.js @@ -7,9 +7,4 @@ es5id: 15.8.2.8_A5 description: Checking if Math.exp(-Infinity) is +0 ---*/ -// CHECK#1 -var x = -Infinity; -if (Math.exp(x) !== +0) -{ - $ERROR("#1: 'var x = -Infinity; Math.exp(x) !== +0'"); -} +assert.sameValue(Math.exp(-Infinity), 0); diff --git a/test/built-ins/Math/floor/S15.8.2.9_A2.js b/test/built-ins/Math/floor/S15.8.2.9_A2.js index 68eca4808e9791bf4a3c3cbb6dd7efb7bbba089c..aace84d59d79e237cc56e819bf7880a0293508c0 100644 --- a/test/built-ins/Math/floor/S15.8.2.9_A2.js +++ b/test/built-ins/Math/floor/S15.8.2.9_A2.js @@ -7,9 +7,4 @@ es5id: 15.8.2.9_A2 description: Checking if Math.floor(x) is +0, where x is +0 ---*/ -// CHECK#1 -var x = +0; -if (Math.floor(x) !== +0) -{ - $ERROR("#1: 'var x = +0; Math.floor(x) !== +0'"); -} +assert.sameValue(Math.floor(0), 0); diff --git a/test/built-ins/Math/floor/S15.8.2.9_A3.js b/test/built-ins/Math/floor/S15.8.2.9_A3.js index af028bdb986589259db9538beee09a059300dba5..57289eff4b4bac33b6ba00dc56de22c6f0f861a0 100644 --- a/test/built-ins/Math/floor/S15.8.2.9_A3.js +++ b/test/built-ins/Math/floor/S15.8.2.9_A3.js @@ -7,9 +7,4 @@ es5id: 15.8.2.9_A3 description: Checking if Math.floor(x) is -0, where x is -0 ---*/ -// CHECK#1 -var x = -0; -if (Math.floor(x) !== -0) -{ - $ERROR("#1: 'var x = -0; Math.floor(x) !== -0'"); -} +assert.sameValue(Math.floor(-0), -0); diff --git a/test/built-ins/Math/floor/S15.8.2.9_A6.js b/test/built-ins/Math/floor/S15.8.2.9_A6.js index 52909cb035ad1b5c6670eb78d435da92cea9e337..34eca404af9a3fbc9877e678f193daf54f059254 100644 --- a/test/built-ins/Math/floor/S15.8.2.9_A6.js +++ b/test/built-ins/Math/floor/S15.8.2.9_A6.js @@ -9,23 +9,6 @@ description: > less than 1 ---*/ -// CHECK#1 -var x = 0.000000000000001; -if (Math.floor(x) !== +0) -{ - $ERROR("#1: 'var x = 0.000000000000001; Math.floor(x) !== +0'"); -} - -// CHECK#2 -var x = 0.999999999999999; -if (Math.floor(x) !== +0) -{ - $ERROR("#2: 'var x = 0.999999999999999; Math.ceil(x) !== +0'"); -} - -// CHECK#3 -var x = 0.5; -if (Math.floor(x) !== +0) -{ - $ERROR("#3: 'var x = 0.5; Math.ceil(x) !== +0'"); -} +assert.sameValue(Math.floor(0.000000000000001), 0, "0.000000000000001"); +assert.sameValue(Math.floor(0.999999999999999), 0, "0.999999999999999"); +assert.sameValue(Math.floor(0.5), 0, "0.5"); diff --git a/test/built-ins/Math/log/S15.8.2.10_A4.js b/test/built-ins/Math/log/S15.8.2.10_A4.js index cd0ff197cae4492ced628ff669096a7b8f4c9d2e..6bbbba835ebaccae15d88c8f1cd7274388e4523e 100644 --- a/test/built-ins/Math/log/S15.8.2.10_A4.js +++ b/test/built-ins/Math/log/S15.8.2.10_A4.js @@ -7,9 +7,4 @@ es5id: 15.8.2.10_A4 description: Checking if Math.log(1) equals to +0 ---*/ -// CHECK#1 -var x = 1; -if (Math.log(x) !== +0) -{ - $ERROR("#1: 'var x=1; Math.log(x) !== +0'"); -} +assert.sameValue(Math.log(1), 0); diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A12.js b/test/built-ins/Math/pow/applying-the-exp-operator_A12.js index 72a1a6e49fd89629373db638eee6cabf188e9855..e9dc94944f9f28018f48c586e2352bb572d1fe0d 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A12.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A12.js @@ -17,8 +17,5 @@ var exponentnum = 4; for (var i = 0; i < exponentnum; i++) { - if (Math.pow(base,exponent[i]) !== +0) - { - $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +0"); - } + assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A15.js b/test/built-ins/Math/pow/applying-the-exp-operator_A15.js index 86de40f94864deadab792467a592cb98eb22b873..caf4f4f1a31a847549cb56d439b1f49b7fff41c4 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A15.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A15.js @@ -16,8 +16,5 @@ var exponentnum = 3; for (var i = 0; i < exponentnum; i++) { - if (Math.pow(base,exponent[i]) !== -0) - { - $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -0"); - } + assert.sameValue(Math.pow(base, exponent[i]), -0, exponent[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A16.js b/test/built-ins/Math/pow/applying-the-exp-operator_A16.js index 4c74246a1d5fda8d70429f86cc121cb0752d6977..f4ef700400c614e25b40e0b79c5e4714dd32ed1b 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A16.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A16.js @@ -18,8 +18,5 @@ var exponentnum = 5; for (var i = 0; i < exponentnum; i++) { - if (Math.pow(base,exponent[i]) !== +0) - { - $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +0"); - } + assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A17.js b/test/built-ins/Math/pow/applying-the-exp-operator_A17.js index a93442e7d05f6e380dba04c9f9ab516dc9ded25d..388dcaf6077aedc933375e07eeab1b5df74b8642 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A17.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A17.js @@ -17,8 +17,5 @@ var exponentnum = 4; for (var i = 0; i < exponentnum; i++) { - if (Math.pow(base,exponent[i]) !== +0) - { - $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +0"); - } + assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A19.js b/test/built-ins/Math/pow/applying-the-exp-operator_A19.js index 2b592ee53bebce7bd030243e6c8153ae74c15039..fae8fa4bb766442f5af234aa24694bf166588b09 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A19.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A19.js @@ -16,8 +16,5 @@ var exponentnum = 3; for (var i = 0; i < exponentnum; i++) { - if (Math.pow(base,exponent[i]) !== -0) - { - $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -0"); - } + assert.sameValue(Math.pow(base, exponent[i]), -0, exponent[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A20.js b/test/built-ins/Math/pow/applying-the-exp-operator_A20.js index 5e07062cdc94b8f7384df914895f40158647c7d7..b81837f074cb5e5e7858446749bcb7d93a7e0df8 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A20.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A20.js @@ -18,8 +18,5 @@ var exponentnum = 5; for (var i = 0; i < exponentnum; i++) { - if (Math.pow(base,exponent[i]) !== +0) - { - $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +0"); - } + assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A6.js b/test/built-ins/Math/pow/applying-the-exp-operator_A6.js index 1b71bbdc1af4068e6b4ad12e870fea72cfd7e83d..a4bad1832b4726e81f17172700ab31be5d384c43 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A6.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A6.js @@ -19,8 +19,5 @@ var basenum = 6; for (var i = 0; i < basenum; i++) { - if (Math.pow(base[i],exponent) !== +0) - { - $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +0"); - } + assert.sameValue(Math.pow(base[i], exponent), 0, base[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A9.js b/test/built-ins/Math/pow/applying-the-exp-operator_A9.js index 104130bbc1d65be3bf503138e88609f08a01b2e1..8801a29416950a5a2326da824c8e3b35c789f074 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A9.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A9.js @@ -19,8 +19,5 @@ var basenum = 6; for (var i = 0; i < basenum; i++) { - if (Math.pow(base[i],exponent) !== +0) - { - $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +0"); - } + assert.sameValue(Math.pow(base[i], exponent), 0, exponent); } diff --git a/test/built-ins/Math/round/S15.8.2.15_A2.js b/test/built-ins/Math/round/S15.8.2.15_A2.js index 6c9bbfdf176750ad168760da99bd5d4b80f94512..1dc804c69325fc9fb419ee34b1fd8e51f00eaadb 100644 --- a/test/built-ins/Math/round/S15.8.2.15_A2.js +++ b/test/built-ins/Math/round/S15.8.2.15_A2.js @@ -7,9 +7,4 @@ es5id: 15.8.2.15_A2 description: Checking if Math.round(x) equals to +0, where x is +0 ---*/ -// CHECK#1 -var x = +0; -if (Math.round(x) !== +0) -{ - $ERROR("#1: 'var x=+0; Math.round(x) !== +0'"); -} +assert.sameValue(Math.round(0), 0); diff --git a/test/built-ins/Math/round/S15.8.2.15_A3.js b/test/built-ins/Math/round/S15.8.2.15_A3.js index 1c67d522c37929d9c8b6116dff62a52f59003c9c..e556db84da265df9d6925077454bb48ac0c98777 100644 --- a/test/built-ins/Math/round/S15.8.2.15_A3.js +++ b/test/built-ins/Math/round/S15.8.2.15_A3.js @@ -7,9 +7,4 @@ es5id: 15.8.2.15_A3 description: Checking if Math.round(x) equals to -0, where x is -0 ---*/ -// CHECK#1 -var x = -0; -if (Math.round(x) !== -0) -{ - $ERROR("#1: 'var x=-0; Math.round(x) !== -0'"); -} +assert.sameValue(Math.round(-0), -0); diff --git a/test/built-ins/Math/sin/S15.8.2.16_A3.js b/test/built-ins/Math/sin/S15.8.2.16_A3.js index aaaba2ce0c354e481270155a7ed082f9257462ab..e43b043112fdcb6ab72b428d00156c74a49aaf68 100644 --- a/test/built-ins/Math/sin/S15.8.2.16_A3.js +++ b/test/built-ins/Math/sin/S15.8.2.16_A3.js @@ -7,9 +7,4 @@ es5id: 15.8.2.16_A3 description: Checking if Math.sin(-0) equals to -0 ---*/ -// CHECK#1 -var x = -0; -if (Math.sin(x) !== -0) -{ - $ERROR("#1: 'var x = -0; Math.sin(x) !== -0'"); -} +assert.sameValue(Math.sin(-0), -0); diff --git a/test/built-ins/Math/sqrt/S15.8.2.17_A3.js b/test/built-ins/Math/sqrt/S15.8.2.17_A3.js index a4c739c728c9fb1731049b13d93961c8e1ff059c..5c5a2799fd4e137e69f0d990a22af8d55a50d9b7 100644 --- a/test/built-ins/Math/sqrt/S15.8.2.17_A3.js +++ b/test/built-ins/Math/sqrt/S15.8.2.17_A3.js @@ -7,9 +7,4 @@ es5id: 15.8.2.17_A3 description: Checking if Math.sqrt(+0) equals to +0 ---*/ -// CHECK#1 -var x = +0; -if (Math.sqrt(x) !== +0) -{ - $ERROR("#1: 'var x=+0; Math.sqrt(x) !== +0'"); -} +assert.sameValue(Math.sqrt(0), 0); diff --git a/test/built-ins/Math/sqrt/S15.8.2.17_A4.js b/test/built-ins/Math/sqrt/S15.8.2.17_A4.js index 63802eceea3f4dda61f5f4fb40cbbc6bb3f360fc..de44f0f47098d232347047643d38c5b6aa0b5132 100644 --- a/test/built-ins/Math/sqrt/S15.8.2.17_A4.js +++ b/test/built-ins/Math/sqrt/S15.8.2.17_A4.js @@ -7,9 +7,4 @@ es5id: 15.8.2.17_A4 description: Checking if Math.sqrt(-0) equals to -0 ---*/ -// CHECK#1 -var x = -0; -if (Math.sqrt(x) !== -0) -{ - $ERROR("#1: 'var x=-0; Math.sqrt(x) !== -0'"); -} +assert.sameValue(Math.sqrt(-0), -0); diff --git a/test/built-ins/Math/tan/S15.8.2.18_A2.js b/test/built-ins/Math/tan/S15.8.2.18_A2.js index a4c1ca8a01e96f7ed3db7f771806cd30a42d87c4..88b57f75f110cd9f9b80dd0baf72c3f88f8b62c8 100644 --- a/test/built-ins/Math/tan/S15.8.2.18_A2.js +++ b/test/built-ins/Math/tan/S15.8.2.18_A2.js @@ -7,9 +7,4 @@ es5id: 15.8.2.18_A2 description: Checking if Math.tan(+0) equals to +0 ---*/ -// CHECK#1 -var x = +0; -if (Math.tan(x) !== +0) -{ - $ERROR("#1: 'var x=+0; Math.tan(x) !== +0'"); -} +assert.sameValue(Math.tan(0), 0); diff --git a/test/built-ins/Math/tan/S15.8.2.18_A3.js b/test/built-ins/Math/tan/S15.8.2.18_A3.js index 0a858ed5285e67d492147efcd485d5a480a00d8e..8cef4798aa89c2780d89986e31a0b59e6346f620 100644 --- a/test/built-ins/Math/tan/S15.8.2.18_A3.js +++ b/test/built-ins/Math/tan/S15.8.2.18_A3.js @@ -7,9 +7,4 @@ es5id: 15.8.2.18_A3 description: Checking if Math.tan(-0) equals to -0 ---*/ -// CHECK#1 -var x = -0; -if (Math.tan(x) !== -0) -{ - $ERROR("#1: 'var x=-0; Math.tan(x) !== -0'"); -} +assert.sameValue(Math.tan(-0), -0);