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
14
modules/gdscript/tests/scripts/parser/features/in.gd
Normal file
14
modules/gdscript/tests/scripts/parser/features/in.gd
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
func test():
|
||||
print("dot" in "Godot")
|
||||
print(not "i" in "team")
|
||||
|
||||
print(true in [true, false])
|
||||
print(not null in [true, false])
|
||||
print(null in [null])
|
||||
|
||||
print(26 in [8, 26, 64, 100])
|
||||
print(not Vector2i(10, 20) in [Vector2i(20, 10)])
|
||||
|
||||
print("apple" in { "apple": "fruit" })
|
||||
print("apple" in { "apple": null })
|
||||
print(not "apple" in { "fruit": "apple" })
|
||||
Loading…
Add table
Add a link
Reference in a new issue