Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * The result of division is determined by the specification of IEEE 754 arithmetics
6 *
7 * @path ch11/11.5/11.5.2/S11.5.2_A4_T2.js
8 * @description The sign of the result is positive if both operands have the same sign, negative if the operands have different signs
9 */
11 //CHECK#1
12 if (1 / 1 !== 1) {
13 $ERROR('#1: 1 / 1 === 1. Actual: ' + (1 / 1));
14 }
16 //CHECK#2
17 if (1 / -1 !== -1) {
18 $ERROR('#2: 1 / -1 === -1. Actual: ' + (1 / -1));
19 }
21 //CHECK#3
22 if (-1 / 1 !== -1) {
23 $ERROR('#3: -1 / 1 === -1. Actual: ' + (-1 / 1));
24 }
26 //CHECK#4
27 if (-1 / -1 !== 1) {
28 $ERROR('#4: -1 / -1 === 1. Actual: ' + (-1 / -1));
29 }