зеркало из https://github.com/github/ruby.git
* 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:
Родитель
92f510a9d9
Коммит
1319ad22d8
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
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) }
|
||||
|
|
Загрузка…
Ссылка в новой задаче