blob: feb1bc110960e9ca29fe71a8e0755fdfd6bcb2b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: false
require 'test/unit'
require '-test-/array/to_ary_concat'
class TestConcatStress < Test::Unit::TestCase
def setup
@stress_level = GC.stress
GC.stress = true
end
def teardown
GC.stress = @stress_level
end
def test_concat
arr = [nil]
bar = Bug::Bar.new
arr.concat(bar)
end
end
|