tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

S7.8.3_A2.1_T2.js (1051B)


      1 // Copyright 2009 the Sputnik authors.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 info: "DecimalLiteral :: .DecimalDigits"
      6 es5id: 7.8.3_A2.1_T2
      7 description: Use .DecimalDigits
      8 ---*/
      9 
     10 //CHECK#0
     11 if (.00 !== 0.00) {
     12  throw new Test262Error('#0: .00 === 0.00');
     13 }
     14 
     15 //CHECK#1
     16 if (.11 !== 0.11) {
     17  throw new Test262Error('#1: .11 === 0.11');
     18 }
     19 
     20 //CHECK#2
     21 if (.22 !== 0.22) {
     22  throw new Test262Error('#2: .22 === 0.22');
     23 }
     24 
     25 //CHECK#3
     26 if (.33 !== 0.33) {
     27  throw new Test262Error('#3: .33 === 0.33');
     28 }
     29 
     30 //CHECK#4
     31 if (.44 !== 0.44) {
     32  throw new Test262Error('#4: .44 === 0.44');
     33 }
     34 
     35 //CHECK#5
     36 if (.55 !== 0.55) {
     37  throw new Test262Error('#5: .55 === 0.55');
     38 }
     39 
     40 //CHECK#6
     41 if (.66 !== 0.66) {
     42  throw new Test262Error('#6: .66 === 0.66');
     43 }
     44 
     45 //CHECK#7
     46 if (.77 !== 0.77) {
     47  throw new Test262Error('#7: .77 === 0.77');
     48 }
     49 
     50 //CHECK#8
     51 if (.88 !== 0.88) {
     52  throw new Test262Error('#8: .88 === 0.88');
     53 }
     54 
     55 //CHECK#9
     56 if (.99 !== 0.99) {
     57  throw new Test262Error('#9: .99 === 0.99');
     58 }
     59 
     60 reportCompare(0, 0);