summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/parser/features/multiline_assert.gd
blob: 8c699c604d07710e48986e87146659a6ceb73347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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')