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
Commenti:
<< Home page
Per gli assert disponibili qui
http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit/Assertions.html
Posta un commento
http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit/Assertions.html
Iscriviti a Commenti sul post [Atom]
<< Home page
Iscriviti a Post [Atom]