domenica, aprile 15, 2007

 

Ruby: unit test

Ruby test unit con il modulo 'test/unit'



require 'test/unit'

class TC_MyTest < Test::Unit::TestCase
# def setup
# end

# def teardown
# end

def test_fail
assert(false, 'Assertion was false.')
end
end

Etichette: ,


Commenti:
Per gli assert disponibili qui
http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit/Assertions.html
 
Posta un commento

Iscriviti a Commenti sul post [Atom]





<< Home page

This page is powered by Blogger. Isn't yours?

Iscriviti a Post [Atom]