mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
remove warning & support multi-run test for test/psych_test_yaml.rb (#2887)
This commit is contained in:
parent
38ed8cbb5f
commit
59a40feec2
Notes:
git
2020-02-07 19:36:34 +09:00
Merged-By: nurse <naruse@airemix.jp>
1 changed files with 1 additions and 0 deletions
|
@ -1034,6 +1034,7 @@ EOY
|
|||
end
|
||||
|
||||
def test_ruby_struct
|
||||
Struct.send(:remove_const, :MyBookStruct) if Struct.const_defined?(:MyBookStruct)
|
||||
# Ruby structures
|
||||
book_struct = Struct::new( "MyBookStruct", :author, :title, :year, :isbn )
|
||||
assert_to_yaml(
|
||||
|
|
Loading…
Add table
Reference in a new issue