diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-06-14 21:51:58 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-06-14 21:51:58 -0700 |
| commit | 79e162526954be38ca27e77159f2c127d05667cd (patch) | |
| tree | 443606b38dfa193f029506002cc57ca0782ea4aa /test | |
| parent | 93cabfc18b87d404e98aace2098174372a9afd58 (diff) | |
| parent | cfd5f5157d06f9c62a04660843c3c02014d8a3a5 (diff) | |
| download | mruby-79e162526954be38ca27e77159f2c127d05667cd.tar.gz mruby-79e162526954be38ca27e77159f2c127d05667cd.zip | |
Merge pull request #286 from monaka/pr-simplify-error-c
Simplify error.c
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/exception.rb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb index 22795161f..d7226a368 100644 --- a/test/t/exception.rb +++ b/test/t/exception.rb @@ -41,6 +41,36 @@ assert('Exception.exception', '15.2.22.4.1') do e.message == 'a' end +assert('ScriptError', '15.2.37') do + begin + raise ScriptError.new + rescue ScriptError + true + else + false + end +end + +assert('SyntaxError', '15.2.38') do + begin + raise SyntaxError.new + rescue SyntaxError + true + else + false + end +end + +assert('LoadError', '15.2.39') do + begin + raise LoadError.new + rescue LoadError + true + else + false + end +end + # Not ISO specified assert('Exception 1') do |
