Created
October 29, 2011 01:26
-
-
Save sassembla/1323962 to your computer and use it in GitHub Desktop.
Simple TestUnit(will evaluate when run)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'test/unit' | |
class MyTest < Test::Unit::TestCase | |
def test_myTestCase | |
test = "here comes" | |
# test = nil | |
assert(test, msg = (nomsg = true;nil)) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
実行時、Failureが出る場合の出力は下記
Loaded suite /Users/sassembla/Desktop/untitled
Started
F
Finished in 0.007399 seconds.
1) Failure:
test_myTestCase:8
is not true.
1 tests, 1 assertions, 1 failures, 0 errors