Skip to content

Instantly share code, notes, and snippets.

@Manfred
Created March 5, 2012 16:10
Show Gist options
  • Save Manfred/1979046 to your computer and use it in GitHub Desktop.
Save Manfred/1979046 to your computer and use it in GitHub Desktop.
The tiniestestest test framework
def assert(expectation, message=nil)
if expectation
$stderr.write('.')
else
message ||= "assertion failed"
puts "FAILURE: #{caller(0)[1]}"
puts " #{message}"
exit -1
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment