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:
parent
a9b600bac0
commit
c0083c0f90
190 changed files with 1788 additions and 17 deletions
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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue