1 # frozen_string_literal: false
5 class TC_SortedSet < Test::Unit::TestCase
10 def assert_runs(ruby, options: nil)
11 options = ['-I', base_dir, *options]
12 r = system(RbConfig.ruby, *options, '-e', ruby)
25 raise r unless r.match?(/has been extracted/)
30 assert_runs <<~RUBY, options: ['-I', "#{__dir__}/fixtures/fake_sorted_set_gem"]
33 var = SortedSet.new.to_s
38 assert_runs <<~RUBY, options: ['-I', "#{__dir__}/fixtures/fake_sorted_set_gem"]
42 var = SortedSet.new.to_s