diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-20 11:22:49 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-20 11:22:49 +0900 |
| commit | b0477f1d3f07e8f84c9ef4980f54071e58c64685 (patch) | |
| tree | 260fb09e3a1e1b284a5ff4d40600cc5af045f342 | |
| parent | c4268f67d052aa55f9cce3307d846285f1e6519b (diff) | |
| parent | f55851cb748f892cf94743d542c27a47023f583e (diff) | |
| download | mruby-b0477f1d3f07e8f84c9ef4980f54071e58c64685.tar.gz mruby-b0477f1d3f07e8f84c9ef4980f54071e58c64685.zip | |
Merge branch 'add-exception-test' of https://github.com/yui-knk/mruby into yui-knk-add-exception-test
| -rw-r--r-- | test/t/exception.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb index 186ac2892..816c3241b 100644 --- a/test/t/exception.rb +++ b/test/t/exception.rb @@ -375,3 +375,13 @@ assert('Raise in ensure') do end end + +assert('Raise in rescue') do + assert_raise(ArgumentError) do + begin + raise "" # StandardError + rescue + raise ArgumentError + end + end +end |
