diff options
author | Kazuki Tsujimoto <[email protected]> | 2020-12-23 02:31:02 +0900 |
---|---|---|
committer | Kazuki Tsujimoto <[email protected]> | 2020-12-23 02:31:02 +0900 |
commit | 31b17a14abf9686a0a9b6777c6b47285f510b66a (patch) | |
tree | 3657b08449aa5804021888af1e98243f89a7ac7b /test | |
parent | 53510d1e8a827596dba926c689406edafa399ada (diff) |
Make NoMatchingPatternError a subclass of StandardError
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_pattern_matching.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb index e553789756..243a4cd2bd 100644 --- a/test/ruby/test_pattern_matching.rb +++ b/test/ruby/test_pattern_matching.rb @@ -1162,6 +1162,10 @@ END end end + def test_nomatchingpatternerror + assert_equal(StandardError, NoMatchingPatternError.superclass) + end + def test_invalid_syntax assert_syntax_error(%q{ case 0 |