Skip to content

Commit 8ae53a4

Browse files
author
jbondc
committed
Accept baselines (missing files).
1 parent 71dc7a5 commit 8ae53a4

File tree

2 files changed

+162
-0
lines changed

2 files changed

+162
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
=== tests/cases/compiler/numLit.ts ===
2+
1..toString();
3+
>1..toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
4+
>toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
5+
6+
1.0.toString();
7+
>1.0.toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
8+
>toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
9+
10+
1.toString();
11+
>1.toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
12+
>toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
13+
14+
1.+2.0 + 3. ;
15+
16+
// Preserve whitespace where important for JS compatibility
17+
var i: number = 1;
18+
>i : Symbol(i, Decl(numLit.ts, 6, 3))
19+
20+
var test1 = i.toString();
21+
>test1 : Symbol(test1, Decl(numLit.ts, 7, 3))
22+
>i.toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
23+
>i : Symbol(i, Decl(numLit.ts, 6, 3))
24+
>toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
25+
26+
var test2 = 2.toString(); // emitted as 2 .toString()
27+
>test2 : Symbol(test2, Decl(numLit.ts, 8, 3))
28+
>2.toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
29+
>toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
30+
31+
var test3 = 3 .toString();
32+
>test3 : Symbol(test3, Decl(numLit.ts, 9, 3))
33+
>3 .toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
34+
>toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
35+
36+
var test4 = 3 .toString();
37+
>test4 : Symbol(test4, Decl(numLit.ts, 10, 3))
38+
>3 .toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
39+
>toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
40+
41+
var test5 = 3 .toString();
42+
>test5 : Symbol(test5, Decl(numLit.ts, 11, 3))
43+
>3 .toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
44+
>toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
45+
46+
var test6 = 3.['toString']();
47+
>test6 : Symbol(test6, Decl(numLit.ts, 12, 3))
48+
>'toString' : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
49+
50+
var test7 = 3
51+
>test7 : Symbol(test7, Decl(numLit.ts, 13, 3))
52+
>3.toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
53+
54+
.toString();
55+
>toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
56+
57+
var test8 = new Number(4).toString();
58+
>test8 : Symbol(test8, Decl(numLit.ts, 15, 3))
59+
>new Number(4).toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
60+
>Number : Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11))
61+
>toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
62+
63+
var test9 = 3. + 3.
64+
>test9 : Symbol(test9, Decl(numLit.ts, 16, 3))
65+
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
=== tests/cases/compiler/numLit.ts ===
2+
1..toString();
3+
>1..toString() : string
4+
>1..toString : (radix?: number) => string
5+
>1. : number
6+
>toString : (radix?: number) => string
7+
8+
1.0.toString();
9+
>1.0.toString() : string
10+
>1.0.toString : (radix?: number) => string
11+
>1.0 : number
12+
>toString : (radix?: number) => string
13+
14+
1.toString();
15+
>1.toString() : string
16+
>1.toString : (radix?: number) => string
17+
>1 : number
18+
>toString : (radix?: number) => string
19+
20+
1.+2.0 + 3. ;
21+
>1.+2.0 + 3. : number
22+
>1.+2.0 : number
23+
>1. : number
24+
>2.0 : number
25+
>3. : number
26+
27+
// Preserve whitespace where important for JS compatibility
28+
var i: number = 1;
29+
>i : number
30+
>1 : number
31+
32+
var test1 = i.toString();
33+
>test1 : string
34+
>i.toString() : string
35+
>i.toString : (radix?: number) => string
36+
>i : number
37+
>toString : (radix?: number) => string
38+
39+
var test2 = 2.toString(); // emitted as 2 .toString()
40+
>test2 : string
41+
>2.toString() : string
42+
>2.toString : (radix?: number) => string
43+
>2 : number
44+
>toString : (radix?: number) => string
45+
46+
var test3 = 3 .toString();
47+
>test3 : string
48+
>3 .toString() : string
49+
>3 .toString : (radix?: number) => string
50+
>3 : number
51+
>toString : (radix?: number) => string
52+
53+
var test4 = 3 .toString();
54+
>test4 : string
55+
>3 .toString() : string
56+
>3 .toString : (radix?: number) => string
57+
>3 : number
58+
>toString : (radix?: number) => string
59+
60+
var test5 = 3 .toString();
61+
>test5 : string
62+
>3 .toString() : string
63+
>3 .toString : (radix?: number) => string
64+
>3 : number
65+
>toString : (radix?: number) => string
66+
67+
var test6 = 3.['toString']();
68+
>test6 : string
69+
>3.['toString']() : string
70+
>3.['toString'] : (radix?: number) => string
71+
>3. : number
72+
>'toString' : string
73+
74+
var test7 = 3
75+
>test7 : string
76+
>3.toString() : string
77+
>3.toString : (radix?: number) => string
78+
>3 : number
79+
80+
.toString();
81+
>toString : (radix?: number) => string
82+
83+
var test8 = new Number(4).toString();
84+
>test8 : string
85+
>new Number(4).toString() : string
86+
>new Number(4).toString : (radix?: number) => string
87+
>new Number(4) : Number
88+
>Number : NumberConstructor
89+
>4 : number
90+
>toString : (radix?: number) => string
91+
92+
var test9 = 3. + 3.
93+
>test9 : number
94+
>3. + 3. : number
95+
>3. : number
96+
>3. : number
97+

0 commit comments

Comments
 (0)