mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 21:01:50 +08:00
25 lines
233 B
GDScript
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')
|