aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/08_Types/8.5_The_Number_Type/S8.5_A11_T1.js
blob: f6587012d9d6227b530bc09575f30bef6fe4b633 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * @name: S8.5_A11_T1;
 * @section: 8.5, 7.8.3;
 * @assertion: The integer 0 has two representations, +0 and -0;
 * @description: Check 1.0/p_zero !== 1.0/n_zero;
*/


// Converted for Test262 from original Sputnik source

ES5Harness.registerTest( {
id: "S8.5_A11_T1",

path: "TestCases/08_Types/8.5_The_Number_Type/S8.5_A11_T1.js",

assertion: "The integer 0 has two representations, +0 and -0",

description: "Check 1.0/p_zero !== 1.0/n_zero",

test: function testcase() {
   var p_zero=+0;
var n_zero=-0;

if (1.0/p_zero === 1.0/n_zero){
  $ERROR('#1: var p_zero=+0; var n_zero=-0; 1.0/p_zero !== 1.0/n_zero');
}

 }
});