Unverified Commit e4992cdd authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4411 from shuujii/commented-out-Struct.new-removes-existing-constant-test

Commented out "Struct.new removes existing constant" test
parents b15293e7 5969ed1a
...@@ -152,14 +152,14 @@ assert("Struct#dig") do ...@@ -152,14 +152,14 @@ assert("Struct#dig") do
assert_equal 1, a.dig(1, 0) assert_equal 1, a.dig(1, 0)
end end
assert("Struct.new removes existing constant") do # TODO: suppress redefining Struct warning during test
skip "redefining Struct with same name cause warnings" # assert("Struct.new removes existing constant") do
begin # begin
assert_not_equal Struct.new("Test", :a), Struct.new("Test", :a, :b) # assert_not_equal Struct.new("Test", :a), Struct.new("Test", :a, :b)
ensure # ensure
Struct.remove_const :Test # Struct.remove_const :Test
end # end
end # end
assert("Struct#initialize_copy requires struct to be the same type") do assert("Struct#initialize_copy requires struct to be the same type") do
begin begin
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment