printer = function(assert_out)
if assert_out == true then
MiniManager.increment_stat("assertions")
print("<color=green>.</color>")
else
MiniManager.increment_stat("failures")
test = MiniManager.running_test
print("<color=#f4292d>failure: "+test["class_name"]+" "+test["test_name"]+"</color>")
print("<color=#f4292d>"+assert_out+"</color>")
end if
end function
assert = function(condition)
if condition == true then
printer(true)
else
printer("expected "+condition+" to be true")
end if
end function
assert_equal = function(value1, value2)
if value1 == value2 then
printer(true)
else
printer("expected """+value1+""" to be equal to """+value2+"""")
end if
end function