godot/modules/gdscript/tests/scripts/parser/features/multiline_assert.gd

25 lines
233 B
GDScript

func test():
var x := 5
assert(x > 0)
assert(x > 0,)
assert(x > 0, 'message')
assert(x > 0, 'message',)
assert(
x > 0
)
assert(
x > 0,
)
assert(
x > 0,
'message'
)
assert(
x > 0,
'message',
)
print('OK')