| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Type(x) and Type(y) are Number-s minus NaN, +0, -0. |
| Return false, if x is the same number value as y; otherwise, return true |
| description: x and y are primitive numbers |
| if ((Number.POSITIVE_INFINITY != Number.POSITIVE_INFINITY) !== false) { |
| $ERROR('#1: (+Infinity != +Infinity) === false'); |
| if ((Number.NEGATIVE_INFINITY != Number.NEGATIVE_INFINITY) !== false) { |
| $ERROR('#2: (-Infinity != -Infinity) === false'); |
| if ((Number.POSITIVE_INFINITY != -Number.NEGATIVE_INFINITY) !== false) { |
| $ERROR('#3: (+Infinity != -(-Infinity)) === false'); |
| if ((1 != 0.999999999999) !== true) { |
| $ERROR('#4: (1 != 0.999999999999) === true'); |
| if ((1.0 != 1) !== false) { |
| $ERROR('#5: (1.0 != 1) === false'); |