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.

10 lines
325 B

extends "../base.gd"
func _init(double, method: String, context: String) -> void:
var passed: String = "%s was called" % method
var failed: String = "%s was not called" % method
self.context = context
self.success = double.call_count(method) > 0
self.expected = passed
self.result = passed if self.success else failed