S7.8.3_A1.2_T5.js (1074B)
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 :: DecimalIntegerLiteral ExponentPart" 6 es5id: 7.8.3_A1.2_T5 7 description: "ExponentPart :: e +DecimalDigits" 8 ---*/ 9 10 //CHECK#0 11 if (0e+1 !== 0) { 12 throw new Test262Error('#0: 0e+1 === 0'); 13 } 14 15 //CHe+CK#1 16 if (1e+1 !== 10) { 17 throw new Test262Error('#1: 1e+1 === 10'); 18 } 19 20 //CHe+CK#2 21 if (2e+1 !== 20) { 22 throw new Test262Error('#2: 2e+1 === 20'); 23 } 24 25 //CHe+CK#3 26 if (3e+1 !== 30) { 27 throw new Test262Error('#3: 3e+1 === 30'); 28 } 29 30 //CHe+CK#4 31 if (4e+1 !== 40) { 32 throw new Test262Error('#4: 4e+1 === 40'); 33 } 34 35 //CHe+CK#5 36 if (5e+1 !== 50) { 37 throw new Test262Error('#5: 5e+1 === 50'); 38 } 39 40 //CHe+CK#6 41 if (6e+1 !== 60) { 42 throw new Test262Error('#6: 6e+1 === 60'); 43 } 44 45 //CHe+CK#7 46 if (7e+1 !== 70) { 47 throw new Test262Error('#7: 7e+1 === 70'); 48 } 49 50 //CHe+CK#8 51 if (8e+1 !== 80) { 52 throw new Test262Error('#8: 8e+1 === 80'); 53 } 54 55 //CHe+CK#9 56 if (9e+1 !== 90) { 57 throw new Test262Error('#9: 9e+1 === 90'); 58 } 59 60 reportCompare(0, 0);