Skip to content

Commit 355dd4b

Browse files
committed
Fix tests not valid with latest Godot anymore
1 parent 1af2fbe commit 355dd4b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

tests/formatter/test_scripts_validity.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
[
1313
# Godot bugs:
1414
"bug_326_multistatement_lambda_corner_case.out.gd",
15+
"bug_339_multiline_lambda.out.gd",
1516
# cases where Godot does more than just parsing
1617
"inline_lambdas_w_comments.in.gd",
1718
"inline_lambdas_w_comments.out.gd",

tests/valid-gd-scripts/function_annotations.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ func f():
2020
var x: Array[int] = [ 1, 2, ]
2121

2222
func g():
23+
pass
2324
@warning_ignore("unused_variable")
2425

2526
func h():

tests/valid-gd-scripts/multiline_lambdas.gd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
func foo():
1+
func stack(x):
2+
pass
3+
func foo(source):
24
stack(func():
35
print("foo")
46
if source == 1:
@@ -37,6 +39,7 @@ func foo():
3739
pass
3840
pass
3941
var f16 = func():
42+
pass
4043
@warning_ignore("unused_variable")
4144
var f17 = func():
4245
@warning_ignore("unused_variable")

0 commit comments

Comments
 (0)