Skip to content

Struct#inspect does not produce the same output as MRI 2.2 #2142

@headius

Description

@headius

Couple failing MRI tests due to subtle changes in Struct#inspect:

PPTestModule::PPCycleTest#test_struct [/Users/headius/projects/jruby/test/mri/test_pp.rb:140]:
<"#<struct Struct::S :...>\n"> expected but was
<"#<struct Struct::S a=1, b=#<struct Struct::S:...>>\n">.

TestStruct::SubStruct#test_inspect [/Users/headius/projects/jruby/test/mri/ruby/test_struct.rb:121]:
Expected /^#<struct a=#<struct #<.*?>:...>>$/ to match "#<struct #<Class:0x2ccc231d> :...>".

That last failure is repeated through two other forms of the struct tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions