1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Merge pull request #70655 from vonagam/fix-assert-multiline

GDScript: Fix multiline and trailing comma for assert
This commit is contained in:
Rémi Verschelde
2023-01-09 14:19:37 +01:00
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