Skip to content

ruby-head: Set’s inspect has changed to "<_MySet: {1, 2}>", which fails one test in the suite #55

@olleolleolle

Description

@olleolleolle

The inspect display has changed and that tripped up tests in current ruby-head:

<"_MySet[1, 2]"> expected but was
<"#<_MySet: {1, 2}>”>

How tests fail

Failure: test_inspect(TC_Set)
/home/runner/work/set/set/test/test_set.rb:801:in 'TC_Set#test_inspect'
     798: 
     799:       c = Class.new(Set)
     800:       c.set_temporary_name("_MySet")
  => 801:       assert_equal('_MySet[1, 2]', c[1, 2].inspect)
     802:     end
     803: 
     804:     def test_to_s
<"_MySet[1, 2]"> expected but was
<"#<_MySet: {1, 2}>">

diff:
?   _MySet[  1, 2] 
? #<      : {    }>
? ++      ?    ?
Error: <"_MySet[1, 2]"> expected but was
<"#<_MySet: {1, 2}>">.
===============================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions