File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ group :development do
1313 gem 'rake'
1414 gem 'simplecov'
1515 gem 'irb' , '>= 1.3.1'
16+ gem 'fiddle'
1617 gem 'benchmark-ips'
1718end
Original file line number Diff line number Diff line change 33end
44
55require_relative 'test_helper'
6- require 'set'
76
87class TestBlockContext < Test ::Unit ::TestCase
98 include PowerAssertTestHelper
@@ -137,7 +136,19 @@ def Assertion(&blk)
137136 end
138137
139138 t do
140- assert_equal <<END . chomp , assertion_message {
139+ expected = if RUBY_VERSION >= '3.5'
140+ <<END . chomp
141+ Set.new == Set.new([0])
142+ | | | | |
143+ | | | | Set[0]
144+ | | | Set
145+ | | false
146+ | Set[]
147+ Set
148+ END
149+ else
150+ require "set"
151+ <<END . chomp
141152 Set.new == Set.new([0])
142153 | | | | |
143154 | | | | #<Set: {0}>
@@ -146,6 +157,8 @@ def Assertion(&blk)
146157 | #<Set: {}>
147158 Set
148159END
160+ end
161+ assert_equal expected , assertion_message {
149162 Set . new == Set . new ( [ 0 ] )
150163 }
151164 end
You can’t perform that action at this time.
0 commit comments