diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_case.rb | 8 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Mon Dec 2 02:03:47 2013 Shota Fukumori <her@sorah.jp> + + * test/ruby/test_case.rb (test_nomethoderror): + Add test related to r43913, r43914 + Mon Dec 2 00:53:01 2013 NAKAMURA Usaku <usa@ruby-lang.org> * hash.c (getenv): use ANSI codepage version of getenv() for miniruby diff --git a/test/ruby/test_case.rb b/test/ruby/test_case.rb index f2c553e632..f17f9aad9b 100644 --- a/test/ruby/test_case.rb +++ b/test/ruby/test_case.rb @@ -114,4 +114,12 @@ class TestCase < Test::Unit::TestCase assert(flag) end + + def test_nomethoderror + assert_raise(NoMethodError) { + case 1 + when Class.new(BasicObject) { }.new + end + } + end end |