From 699780308d8731258ea543f1cdaf8576718ef5f0 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 17 Jan 2008 16:53:48 +0000 Subject: * bootstraptest/test_attr.rb: added for [ruby-core:15120]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_attr.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bootstraptest/test_attr.rb diff --git a/bootstraptest/test_attr.rb b/bootstraptest/test_attr.rb new file mode 100644 index 000000000..c70e2c21a --- /dev/null +++ b/bootstraptest/test_attr.rb @@ -0,0 +1,10 @@ +assert_equal %{ok}, %{ + class A + attr :m + end + begin + A.new.m(3) + rescue ArgumentError => e + print "ok" + end +}, '[ruby-core:15120]' -- cgit