GDScript: Fix multiline and trailing comma for assert
This commit is contained in:
parent
b6e06038f8
commit
71f7c8a9d3
3 changed files with 33 additions and 2 deletions
|
|
@ -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')
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_OK
|
||||
OK
|
||||
Loading…
Add table
Add a link
Reference in a new issue