You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Add dozens of new integration tests to the GDScript test suite
This also ignores `.out` files in the file format static checks.
This commit is contained in:
57
modules/gdscript/tests/scripts/parser/features/nested_if.gd
Normal file
57
modules/gdscript/tests/scripts/parser/features/nested_if.gd
Normal file
@@ -0,0 +1,57 @@
|
||||
func test():
|
||||
# 20 levels of nesting (and then some).
|
||||
if true:
|
||||
print("1")
|
||||
if true:
|
||||
print("2")
|
||||
if true:
|
||||
print("3")
|
||||
if true:
|
||||
print("4")
|
||||
if true:
|
||||
print("5")
|
||||
if true:
|
||||
print("6")
|
||||
if true:
|
||||
print("7")
|
||||
if true:
|
||||
print("8")
|
||||
if true:
|
||||
print("9")
|
||||
if true:
|
||||
print("10")
|
||||
if true:
|
||||
print("11")
|
||||
if true:
|
||||
print("12")
|
||||
if true:
|
||||
print("13")
|
||||
if true:
|
||||
print("14")
|
||||
if true:
|
||||
print("15")
|
||||
if true:
|
||||
print("16")
|
||||
if true:
|
||||
print("17")
|
||||
if true:
|
||||
print("18")
|
||||
if true:
|
||||
print("19")
|
||||
if true:
|
||||
print("20")
|
||||
if false:
|
||||
print("End")
|
||||
if true:
|
||||
if true:
|
||||
if true:
|
||||
if true:
|
||||
if true:
|
||||
if true:
|
||||
if true:
|
||||
if true:
|
||||
if true:
|
||||
if true:
|
||||
if true:
|
||||
if true:
|
||||
print("This won't be printed")
|
||||
Reference in New Issue
Block a user