diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-13 16:40:33 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-13 16:40:33 +0000 |
commit | 1319ad22d84145eeb7dc2e7c405d413d47cf09f6 (patch) | |
tree | bbe3edab181fce7ef4219a096e16786d59ad2523 | |
parent | 92f510a9d9014afdaa2f26a04ff250455ea35162 (diff) | |
download | ruby-1319ad22d84145eeb7dc2e7c405d413d47cf09f6.tar.gz |
* bootstraptest/test_struct.rb: some test moved from test to shut
warning up.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | bootstraptest/test_struct.rb | 5 | ||||
-rw-r--r-- | test/ruby/test_struct.rb | 1 |
3 files changed, 8 insertions, 1 deletions
@@ -4,6 +4,9 @@ Thu Mar 13 21:00:50 2008 Yukihiro Matsumoto <matz@ruby-lang.org> which shares internal pointer. splice modifies the receiver right after subseq. [ruby-dev:34005] + * bootstraptest/test_struct.rb: some test moved from test to shut + warning up. + Thu Mar 13 19:42:43 2008 NAKAMURA Usaku <usa@ruby-lang.org> * {bcc,win}32/Makefile.sub (config.h): define uint32_t. diff --git a/bootstraptest/test_struct.rb b/bootstraptest/test_struct.rb new file mode 100644 index 0000000000..a65964d5f9 --- /dev/null +++ b/bootstraptest/test_struct.rb @@ -0,0 +1,5 @@ +assert_equal 'Struct::Foo', %q{ + Struct.instance_eval { const_set(:Foo, nil) } + Struct.new("Foo") + Struct::Foo +} diff --git a/test/ruby/test_struct.rb b/test/ruby/test_struct.rb index 270d537473..cbb0c1405e 100644 --- a/test/ruby/test_struct.rb +++ b/test/ruby/test_struct.rb @@ -91,7 +91,6 @@ class TestStruct < Test::Unit::TestCase end def test_struct_new - Struct.instance_eval { const_set(:Foo, nil) } assert_raise(NameError) { Struct.new("foo") } assert_nothing_raised { Struct.new("Foo") } Struct.instance_eval { remove_const(:Foo) } |