GDScript: Fix multiline and trailing comma for assert

This commit is contained in:
Dmitrii Maganov
2022-12-28 04:34:00 +02:00
parent b6e06038f8
commit 71f7c8a9d3
3 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,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')

View File

@ -0,0 +1,2 @@
GDTEST_OK
OK