diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-12-18 01:55:23 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-12-18 01:55:23 +0900 |
| commit | 815e0c400a3fc889a1a3503e6fd21e56ab01faee (patch) | |
| tree | d3318b14ab4f80edac96b910b84b9fde025b6116 /test/t | |
| parent | 4c1667a5f67defd593bd37b2cbab0e0f33f7af75 (diff) | |
| parent | d2f2f9db511afc348a88f864b9f0b0ccfc59a8f1 (diff) | |
| download | mruby-815e0c400a3fc889a1a3503e6fd21e56ab01faee.tar.gz mruby-815e0c400a3fc889a1a3503e6fd21e56ab01faee.zip | |
Merge pull request #4875 from shuujii/remove-location-info-from-Exception-inspect
Remove location info from `Exception#inspect`
Diffstat (limited to 'test/t')
| -rw-r--r-- | test/t/exception.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb index bdf277c1e..a6f69eef6 100644 --- a/test/t/exception.rb +++ b/test/t/exception.rb @@ -352,8 +352,10 @@ assert('Exception 19') do assert_equal [true, true], Class4Exception19.new.a end -assert('Exception#inspect without message') do +assert('Exception#inspect') do assert_equal "Exception", Exception.new.inspect + assert_equal "Exception", Exception.new("").inspect + assert_equal "error! (Exception)", Exception.new("error!").inspect end assert('Exception#backtrace') do |
