Skip to content

Commit a0fdb2a

Browse files
committed
Pipeline - Test case for hack&papp combination.
1 parent fcd1c8f commit a0fdb2a

File tree

4 files changed

+81
-0
lines changed

4 files changed

+81
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//// [pipelineHackAndPApp.ts]
2+
(1.1 + 2.6) |> (# |>> Math.round);
3+
4+
(3) |> (3 |>> ((o) => Math.pow(o, #)));
5+
6+
5.7 |>> ((a) => a |> # * 100);
7+
8+
9+
//// [pipelineHackAndPApp.js]
10+
var pipelineHackPlaceholder_1, pipelineHackPlaceholder_2;
11+
(pipelineHackPlaceholder_1 = (1.1 + 2.6), (Math.round(pipelineHackPlaceholder_1)));
12+
(pipelineHackPlaceholder_2 = (3), ((function (o) { return Math.pow(o, pipelineHackPlaceholder_2); })(3)));
13+
(function (a) { var pipelineHackPlaceholder_3; return (pipelineHackPlaceholder_3 = a, pipelineHackPlaceholder_3 * 100); })(5.7);
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
=== tests/cases/conformance/pipeline/pipelineHackAndPApp.ts ===
2+
(1.1 + 2.6) |> (# |>> Math.round);
3+
># : Symbol(#, Decl(pipelineHackAndPApp.ts, 0, 0))
4+
>Math.round : Symbol(Math.round, Decl(lib.es5.d.ts, --, --))
5+
>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
6+
>round : Symbol(Math.round, Decl(lib.es5.d.ts, --, --))
7+
8+
(3) |> (3 |>> ((o) => Math.pow(o, #)));
9+
>o : Symbol(o, Decl(pipelineHackAndPApp.ts, 2, 16))
10+
>Math.pow : Symbol(Math.pow, Decl(lib.es5.d.ts, --, --))
11+
>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
12+
>pow : Symbol(Math.pow, Decl(lib.es5.d.ts, --, --))
13+
>o : Symbol(o, Decl(pipelineHackAndPApp.ts, 2, 16))
14+
># : Symbol(#, Decl(pipelineHackAndPApp.ts, 0, 34))
15+
16+
5.7 |>> ((a) => a |> # * 100);
17+
>a : Symbol(a, Decl(pipelineHackAndPApp.ts, 4, 10))
18+
>a : Symbol(a, Decl(pipelineHackAndPApp.ts, 4, 10))
19+
># : Symbol(#, Decl(pipelineHackAndPApp.ts, 4, 15))
20+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
=== tests/cases/conformance/pipeline/pipelineHackAndPApp.ts ===
2+
(1.1 + 2.6) |> (# |>> Math.round);
3+
>(1.1 + 2.6) |> (# |>> Math.round) : number
4+
>(1.1 + 2.6) : number
5+
>1.1 + 2.6 : number
6+
>1.1 : 1.1
7+
>2.6 : 2.6
8+
>(# |>> Math.round) : number
9+
># |>> Math.round : number
10+
># : number
11+
>Math.round : (x: number) => number
12+
>Math : Math
13+
>round : (x: number) => number
14+
15+
(3) |> (3 |>> ((o) => Math.pow(o, #)));
16+
>(3) |> (3 |>> ((o) => Math.pow(o, #))) : number
17+
>(3) : 3
18+
>3 : 3
19+
>(3 |>> ((o) => Math.pow(o, #))) : number
20+
>3 |>> ((o) => Math.pow(o, #)) : number
21+
>3 : 3
22+
>((o) => Math.pow(o, #)) : (o: any) => number
23+
>(o) => Math.pow(o, #) : (o: any) => number
24+
>o : any
25+
>Math.pow(o, #) : number
26+
>Math.pow : (x: number, y: number) => number
27+
>Math : Math
28+
>pow : (x: number, y: number) => number
29+
>o : any
30+
># : 3
31+
32+
5.7 |>> ((a) => a |> # * 100);
33+
>5.7 |>> ((a) => a |> # * 100) : number
34+
>5.7 : 5.7
35+
>((a) => a |> # * 100) : (a: any) => number
36+
>(a) => a |> # * 100 : (a: any) => number
37+
>a : any
38+
>a |> # * 100 : number
39+
>a : any
40+
># * 100 : number
41+
># : any
42+
>100 : 100
43+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
(1.1 + 2.6) |> (# |>> Math.round);
2+
3+
(3) |> (3 |>> ((o) => Math.pow(o, #)));
4+
5+
5.7 |>> ((a) => a |> # * 100);

0 commit comments

Comments
 (0)