You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
336 B
11 lines
336 B
4 years ago
|
extends "../base.gd"
|
||
|
|
||
|
func _init(value, context: String) -> void:
|
||
|
var type = type2str(value)
|
||
|
var passed: String = "|%s| %s == true" % [type, value]
|
||
|
var failed: String = "|%s| %s != true" % [type, value]
|
||
|
self.context = context
|
||
|
self.success = (value == true)
|
||
|
self.expected = passed
|
||
|
self.result = passed if self.success else failed
|