diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-04-28 18:42:23 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-04-28 18:42:23 +0900 |
| commit | 5969ed1afb0f28a2a3ce9504b4f1cb2f7c14ea57 (patch) | |
| tree | a30e88a91d44bc48020abec7e3910bc9114adb9c /mrbgems/mruby-struct | |
| parent | b15293e709d8f3bf5ec8c3538960400cf25f0b6d (diff) | |
| download | mruby-5969ed1afb0f28a2a3ce9504b4f1cb2f7c14ea57.tar.gz mruby-5969ed1afb0f28a2a3ce9504b4f1cb2f7c14ea57.zip | |
Commented out "Struct.new removes existing constant" test
Because this test is always skipped.
Diffstat (limited to 'mrbgems/mruby-struct')
| -rw-r--r-- | mrbgems/mruby-struct/test/struct.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mrbgems/mruby-struct/test/struct.rb b/mrbgems/mruby-struct/test/struct.rb index c298fef9f..91e8cecc6 100644 --- a/mrbgems/mruby-struct/test/struct.rb +++ b/mrbgems/mruby-struct/test/struct.rb @@ -152,14 +152,14 @@ assert("Struct#dig") do assert_equal 1, a.dig(1, 0) end -assert("Struct.new removes existing constant") do - skip "redefining Struct with same name cause warnings" - begin - assert_not_equal Struct.new("Test", :a), Struct.new("Test", :a, :b) - ensure - Struct.remove_const :Test - end -end +# TODO: suppress redefining Struct warning during test +# assert("Struct.new removes existing constant") do +# begin +# assert_not_equal Struct.new("Test", :a), Struct.new("Test", :a, :b) +# ensure +# Struct.remove_const :Test +# end +# end assert("Struct#initialize_copy requires struct to be the same type") do begin |
