2023-01-22 08:32:05 +00:00
|
|
|
const const_color: Color = 'red'
|
|
|
|
|
|
|
|
func func_color(arg_color: Color = 'blue') -> bool:
|
|
|
|
return arg_color == Color.BLUE
|
|
|
|
|
|
|
|
func test():
|
2024-08-28 14:41:52 +00:00
|
|
|
Utils.check(const_color == Color.RED)
|
2023-01-22 08:32:05 +00:00
|
|
|
|
2024-08-28 14:41:52 +00:00
|
|
|
Utils.check(func_color() == true)
|
|
|
|
Utils.check(func_color('blue') == true)
|
2023-01-22 08:32:05 +00:00
|
|
|
|
|
|
|
var var_color: Color = 'green'
|
2024-08-28 14:41:52 +00:00
|
|
|
Utils.check(var_color == Color.GREEN)
|
2023-01-22 08:32:05 +00:00
|
|
|
|
|
|
|
print('ok')
|