summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKazuki Tsujimoto <kazuki@callcc.net>2020-12-23 02:31:02 +0900
committerKazuki Tsujimoto <kazuki@callcc.net>2020-12-23 02:31:02 +0900
commit31b17a14abf9686a0a9b6777c6b47285f510b66a (patch)
tree3657b08449aa5804021888af1e98243f89a7ac7b /test
parent53510d1e8a827596dba926c689406edafa399ada (diff)
Make NoMatchingPatternError a subclass of StandardError
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_pattern_matching.rb4
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