You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +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:
18
modules/gdscript/tests/scripts/parser/features/match.gd
Normal file
18
modules/gdscript/tests/scripts/parser/features/match.gd
Normal file
@@ -0,0 +1,18 @@
|
||||
func test():
|
||||
var i = "Hello"
|
||||
match i:
|
||||
"Hello":
|
||||
print("hello")
|
||||
# This will fall through to the default case below.
|
||||
continue
|
||||
"Good bye":
|
||||
print("bye")
|
||||
_:
|
||||
print("default")
|
||||
|
||||
var j = 25
|
||||
match j:
|
||||
26:
|
||||
print("This won't match")
|
||||
_:
|
||||
print("This will match")
|
||||
Reference in New Issue
Block a user