A Godot Engine app to help streamers organize Majority Judgment polls in their streams.
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.
 
 

12 lines
405 B

extends "../base.gd"
func _init(a, b, context: String) -> void:
var typeofa = type2str(a)
var typeofb = type2str(b)
var passed: String = "|%s| %s is equal to |%s| %s" % [typeofa, a, typeofb, b]
var failed: String = "|%s| %s is not equal to |%s| %s" % [typeofa, a, typeofb, b]
self.context = context
self.success = (a == b)
self.expected = passed
self.result = passed if self.success else failed