~ubuntu-branches/ubuntu/vivid/mozjs24/vivid

« back to all changes in this revision

Viewing changes to js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T8.js

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 * DecimalLiteral :: .DecimalDigits ExponentPart
 
6
 *
 
7
 * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T8.js
 
8
 * @description ExponentPart :: E 0
 
9
 */
 
10
 
 
11
//CHECK#0
 
12
if (.0E0 !== 0.0) {
 
13
  $ERROR('#0: .0E0 === 0.0');
 
14
}
 
15
 
 
16
//CHECK#1
 
17
if (.1E0 !== 0.1) {
 
18
  $ERROR('#1: .1E0 === 0.1');
 
19
}
 
20
 
 
21
//CHECK#2
 
22
if (.2E0 !== 0.2) {
 
23
  $ERROR('#2: .2E0 === 0.2');
 
24
}
 
25
 
 
26
//CHECK#3
 
27
if (.3E0 !== 0.3) {
 
28
  $ERROR('#3: .3E0 === 0.3');
 
29
}
 
30
 
 
31
//CHECK#4
 
32
if (.4E0 !== 0.4) {
 
33
  $ERROR('#4: .4E0 === 0.4');
 
34
}
 
35
 
 
36
//CHECK#5
 
37
if (.5E0 !== 0.5) {
 
38
  $ERROR('#5: .5E0 === 0.5');
 
39
}
 
40
 
 
41
//CHECK#6
 
42
if (.6E0 !== 0.6) {
 
43
  $ERROR('#6: .6E0 === 0.6');
 
44
}
 
45
 
 
46
//CHECK#7
 
47
if (.7E0 !== 0.7) {
 
48
  $ERROR('#7: .7E0 === 0.7');
 
49
}
 
50
 
 
51
//CHECK#8
 
52
if (.8E0 !== 0.8) {
 
53
  $ERROR('#8: .8E0 === 0.8');
 
54
}
 
55
 
 
56
//CHECK#9
 
57
if (.9E0 !== 0.9) {
 
58
  $ERROR('#9: .9E0 === 0.9');
 
59
}
 
60