SusSourceSusOutputMessages

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 condition Boolean

The result of the test.

parameter orientation Boolean

The orientation of the assertions.

parameter message String

The message to display.

parameter backtrace Array

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