virtualx-engine/modules/gdscript/tests/scripts/parser/warnings/assert_always_true.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

5 lines
140 B
GDScript

func test():
# These statements always evaluate to `true`, and therefore emit a warning.
assert(true)
assert(-1.234)
assert(2 + 3 == 5)