virtualx-engine/modules/gdscript/tests/scripts/parser/features/in.gd
Hugo Locurcio c0083c0f90
Add dozens of new integration tests to the GDScript test suite
This also ignores `.out` files in the file format static checks.
2021-09-14 18:42:08 +02:00

14 lines
357 B
GDScript

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" })