virtualx-engine/modules/gdscript/tests/scripts/parser/warnings/assert_always_true.gd

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
140 B
GDScript3
Raw Normal View History

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