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
357 B

extends "../base.gd"
func _init(value, low, high, context: String) -> void:
var passed: String = "%s is in range(%s, %s)" % [value, low, high]
var failed: String = "%s is not in range(%s, %s)" % [value, low, high]
self.context = context
self.success = value in range(low, high)
self.expected = passed
self.result = passed if self.success else failed