aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/11_Expressions/11.4_Unary_Operators/11.4.7_Unary_minus_Operator/S11.4.7_A4.2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/11_Expressions/11.4_Unary_Operators/11.4.7_Unary_minus_Operator/S11.4.7_A4.2.js')
-rw-r--r--test/suite/sputnik_converted/11_Expressions/11.4_Unary_Operators/11.4.7_Unary_minus_Operator/S11.4.7_A4.2.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/test/suite/sputnik_converted/11_Expressions/11.4_Unary_Operators/11.4.7_Unary_minus_Operator/S11.4.7_A4.2.js b/test/suite/sputnik_converted/11_Expressions/11.4_Unary_Operators/11.4.7_Unary_minus_Operator/S11.4.7_A4.2.js
deleted file mode 100644
index d264af4f4..000000000
--- a/test/suite/sputnik_converted/11_Expressions/11.4_Unary_Operators/11.4.7_Unary_minus_Operator/S11.4.7_A4.2.js
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
-* @name: S11.4.7_A4.2;
-* @section: 11.4.7;
-* @assertion: Negating +0 produces -0, negating -0 produces +0;
-* @description: Checking Infinity;
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S11.4.7_A4.2",
-
-path: "TestCases/11_Expressions/11.4_Unary_Operators/11.4.7_Unary_minus_Operator/S11.4.7_A4.2.js",
-
-assertion: "Negating +0 produces -0, negating -0 produces +0",
-
-description: "Checking Infinity",
-
-test: function testcase() {
- //CHECK#1
-var x = 0;
-x = -x;
-if (x !== -0) {
- $ERROR('#1.1: var x = 0; x = -x; x === 0. Actual: ' + (x));
-} else {
- if (1/x !== Number.NEGATIVE_INFINITY) {
- $ERROR('#1.2: var x = 0; x = -x; x === - 0. Actual: +0');
- }
-}
-
-//CHECK#2
-var x = -0;
-x = -x;
-if (x !== 0) {
- $ERROR('#2.1: var x = -0; x = -x; x === 0. Actual: ' + (x));
-} else {
- if (1/x !== Number.POSITIVE_INFINITY) {
- $ERROR('#2.2: var x = -0; x = -x; x === + 0. Actual: -0');
- }
-}
-
-
- }
-});
-