summaryrefslogtreecommitdiffhomepage
path: root/test/assert.rb
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2013-02-10 01:11:09 +0900
committerYukihiro Matz Matsumoto <[email protected]>2013-02-10 01:11:09 +0900
commit06c06d5c36814e8e5321923fa2e0483e6ea9abc5 (patch)
tree824fb95520c7fb9b089a90bb7090fa1958961733 /test/assert.rb
parent84a7c9ed1c7781b53344c14adac722bc27798dcf (diff)
parent9a439245dfcbe520a9d2f6b70cb056b9ad351365 (diff)
downloadmruby-06c06d5c36814e8e5321923fa2e0483e6ea9abc5.tar.gz
mruby-06c06d5c36814e8e5321923fa2e0483e6ea9abc5.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'test/assert.rb')
-rw-r--r--test/assert.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/assert.rb b/test/assert.rb
index 4fe95de9d..218a911d4 100644
--- a/test/assert.rb
+++ b/test/assert.rb
@@ -23,6 +23,7 @@ end
# which will be tested by this
# assertion
def assert(str = 'Assertion failed', iso = '')
+ print(str, (iso != '' ? " [#{iso}]" : ''), ' : ') if $mrbtest_verbose
begin
if(!yield)
$asserts.push(assertion_string('Fail: ', str, iso))
@@ -37,6 +38,7 @@ def assert(str = 'Assertion failed', iso = '')
$kill_test += 1
print('X')
end
+ print("\n") if $mrbtest_verbose
end
##