module Messages
Definitions
def assert(condition, orientation, message, backtrace)
If the orientation is true, and the test passed, then it is a successful outcome. If the orientation is false, and the test failed, then it is a successful outcome. Otherwise, it is a failed outcome.
Signature
-
parameter
conditionBoolean The result of the test.
-
parameter
orientationBoolean The orientation of the assertions.
-
parameter
messageString The message to display.
-
parameter
backtraceArray The backtrace to display.
Implementation
def assert(condition, orientation, message, backtrace)
if condition
self.puts(:indent, *pass_prefix(orientation), message, backtrace)
else
self.puts(:indent, *fail_prefix(orientation), message, backtrace)
end
end