summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/parser/warnings/assert_always_true.gd
blob: 8feaed899f82c10e596d1bba5010ef8427d020e6 (plain)
1
2
3
4
5
func test():
	# These statements always evaluate to `true`, and therefore emit a warning.
	assert(true)
	assert(-1.234)
	assert(2 + 3 == 5)