js/src/tests/test262/ch08/8.5/S8.5_A13_T2.js

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     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  * Finite nonzero values  that are Normalised having the form s*m*2**e
     6  *  where s is +1 or -1, m is a positive integer less than 2**53 but not
     7  *  less than s**52 and e is an integer ranging from -1074 to 971
     8  *
     9  * @path ch08/8.5/S8.5_A13_T2.js
    10  * @description Finite Non zero values where e is 971
    11  */
    13 //CHECK #1 
    14 if ((1*(Math.pow(2,52))*(Math.pow(2,971))) !== 8.98846567431158e+307){
    15   $ERROR('#1: (1*(Math.pow(2,52))*(Math.pow(2,971))) === 8.98846567431158e+307. Actual: ' + ((1*(Math.pow(2,52))*(Math.pow(2,971)))));
    16 }
    18 //CHECK #2 
    19 if ((1*((Math.pow(2,53))-1)*(Math.pow(2,971))) !== 1.7976931348623157e+308){
    20   $ERROR('#2: (1*((Math.pow(2,53))-1)*(Math.pow(2,971))) === 1.7976931348623157e+308. Actual: ' + ((1*((Math.pow(2,53))-1)*(Math.pow(2,971)))));
    21 }
    23 //CHECK #3 
    24 if ((-1*(Math.pow(2,52))*(Math.pow(2,971))) !== -8.98846567431158e+307){
    25   $ERROR('#3: (-1*(Math.pow(2,52))*(Math.pow(2,971))) === -8.98846567431158e+307. Actual: ' + ((-1*(Math.pow(2,52))*(Math.pow(2,971)))));
    26 }

mercurial