mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
92f510a9d9
commit
1319ad22d8
3 changed files with 8 additions and 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
|
which shares internal pointer. splice modifies the receiver
|
||||||
right after subseq. [ruby-dev:34005]
|
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>
|
Thu Mar 13 19:42:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* {bcc,win}32/Makefile.sub (config.h): define uint32_t.
|
* {bcc,win}32/Makefile.sub (config.h): define uint32_t.
|
||||||
|
|
5
bootstraptest/test_struct.rb
Normal file
5
bootstraptest/test_struct.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
assert_equal 'Struct::Foo', %q{
|
||||||
|
Struct.instance_eval { const_set(:Foo, nil) }
|
||||||
|
Struct.new("Foo")
|
||||||
|
Struct::Foo
|
||||||
|
}
|
|
@ -91,7 +91,6 @@ class TestStruct < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_struct_new
|
def test_struct_new
|
||||||
Struct.instance_eval { const_set(:Foo, nil) }
|
|
||||||
assert_raise(NameError) { Struct.new("foo") }
|
assert_raise(NameError) { Struct.new("foo") }
|
||||||
assert_nothing_raised { Struct.new("Foo") }
|
assert_nothing_raised { Struct.new("Foo") }
|
||||||
Struct.instance_eval { remove_const(:Foo) }
|
Struct.instance_eval { remove_const(:Foo) }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue