Skip to content

Commit

Permalink
fix bad test
Browse files Browse the repository at this point in the history
  • Loading branch information
Th3-M4jor committed Nov 3, 2024
1 parent 81cca72 commit ebeb4a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/ruby/optional/capi/string_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,8 @@ def inspect
end

it "returns the same string as String#-@" do
@s.rb_enc_interned_str("hello", str.bytesize, Encoding::UTF_8).should.equal?(-"hello")
str = "hello"
@s.rb_enc_interned_str(str, str.bytesize, Encoding::UTF_8).should.equal?(-str)
end

ruby_bug "#20322", ""..."3.4" do
Expand Down

0 comments on commit ebeb4a5

Please sign in to comment.