Skip to content

Commit

Permalink
[parser] Add F# pipeline operator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
goodmind committed Jul 6, 2019
1 parent 42d4360 commit 0d0fa71
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x => x |> [y => y + 1 |> z => z * 2]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x => x |> [y => y + 1] |> z => z * 2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x => x |> foo(x = 1 |> foo);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x => x |> { method: y => y + 1 |> z => z * 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x => x |> { method: y => y + 1 } |> z => z * 2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x => x |> inc |> double
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x => x |> inc |> double
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x => x |> (y => y + 3 |> (b => y + b))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(x) => x
|> (y) => y + 1
|> (z) => z * 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
x => x
|> y => y + 1
|> z => z * 2;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(x) => x |> (y) => y + 1 |> (z) => z * 2;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x => x |> y => y + 1 |> z => z * 2;
3 changes: 3 additions & 0 deletions src/parser/test/flow/fsharp_pipeline_operator/await-end.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
async function test () {
return x |> await;
}
3 changes: 3 additions & 0 deletions src/parser/test/flow/fsharp_pipeline_operator/await.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
async function test () {
return x |> await |> f;
}
3 changes: 3 additions & 0 deletions src/parser/test/flow/fsharp_pipeline_operator/ban-await-f.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
async function test () {
return x |> await f;
}
1 change: 1 addition & 0 deletions src/parser/test/flow/fsharp_pipeline_operator/base.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a |> b
1 change: 1 addition & 0 deletions src/parser/test/flow/fsharp_pipeline_operator/chain.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x |> inc |> double

0 comments on commit 0d0fa71

Please sign in to comment.