Created
January 6, 2012 15:25
-
-
Save llaskin/1571045 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
value1 = "14" | |
value2 = "14.00" | |
assert_less_than_equal(((value1.to_f - value2.to_f)/value1.to_f).abs, 0.0, "Some error text") | |
def assert_less_than_equal(aExp, aActual, sTestText) | |
if aExp <= aActual | |
$Sel_log.result(true, sTestText) | |
else | |
$Sel_log.result(false, sTestText.upcase) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment