diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2013-02-10 01:11:09 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2013-02-10 01:11:09 +0900 |
| commit | 06c06d5c36814e8e5321923fa2e0483e6ea9abc5 (patch) | |
| tree | 824fb95520c7fb9b089a90bb7090fa1958961733 /test/assert.rb | |
| parent | 84a7c9ed1c7781b53344c14adac722bc27798dcf (diff) | |
| parent | 9a439245dfcbe520a9d2f6b70cb056b9ad351365 (diff) | |
| download | mruby-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.rb | 2 |
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 ## |
