initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
This commit is contained in:
39
modules/gdscript/tests/scripts/parser/features/for_range.gd
Normal file
39
modules/gdscript/tests/scripts/parser/features/for_range.gd
Normal file
@@ -0,0 +1,39 @@
|
||||
func test():
|
||||
for i in range(5):
|
||||
print(i)
|
||||
|
||||
print()
|
||||
|
||||
# Equivalent to the above `for` loop:
|
||||
for i in 5:
|
||||
print(i)
|
||||
|
||||
print()
|
||||
|
||||
for i in range(1, 5):
|
||||
print(i)
|
||||
|
||||
print()
|
||||
|
||||
for i in range(1, -5, -1):
|
||||
print(i)
|
||||
|
||||
print()
|
||||
|
||||
for i in [2, 4, 6, -8]:
|
||||
print(i)
|
||||
|
||||
print()
|
||||
|
||||
for i in [true, false]:
|
||||
print(i)
|
||||
|
||||
print()
|
||||
|
||||
for i in [Vector2i(10, 20), Vector2i(-30, -40)]:
|
||||
print(i)
|
||||
|
||||
print()
|
||||
|
||||
for i in "Hello_Unicôde_world!_🦄":
|
||||
print(i)
|
Reference in New Issue
Block a user