New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
headius opened this Issue Nov 7, 2014 · 0 comments

Comments

Projects
None yet
3 participants
@headius
Member

headius commented Nov 7, 2014

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.

@headius headius added this to the JRuby 9000 milestone Nov 7, 2014

headius added a commit that referenced this issue Nov 7, 2014

@enebo enebo modified the milestone: JRuby 9.0.0.0 Jul 14, 2015

kares added a commit to kares/jruby that referenced this issue Nov 13, 2015

@kares kares closed this in 50dba20 Nov 14, 2015

@kares kares added this to the JRuby 9.0.5.0 milestone Nov 14, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment