-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'complex_unistatement_lambdas' tests
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
tests/formatter/input-output-pairs/complex_unistatement_lambdas.in.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
func foo(x): | ||
pass | ||
func bar(x,y): | ||
pass | ||
|
||
func baz(): | ||
foo(func(): pass) | ||
bar(func(): pass,func(): pass) | ||
var x1 = [func(): pass,func(): pass] | ||
var x2 = [func(): pass,func():pass,] | ||
var x3 = {'x':func(): pass,'y':func(): pass} | ||
var x4 = {'x':func(): pass,'y':func(): pass,} |
21 changes: 21 additions & 0 deletions
21
tests/formatter/input-output-pairs/complex_unistatement_lambdas.out.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
func foo(x): | ||
pass | ||
|
||
|
||
func bar(x, y): | ||
pass | ||
|
||
|
||
func baz(): | ||
foo(func(): pass) | ||
bar(func(): pass, func(): pass) | ||
var x1 = [func(): pass, func(): pass] | ||
var x2 = [ | ||
func(): pass, | ||
func(): pass, | ||
] | ||
var x3 = {"x": func(): pass, "y": func(): pass} | ||
var x4 = { | ||
"x": func(): pass, | ||
"y": func(): pass, | ||
} |