ruby-changes:67542
From: Nobuyoshi <ko1@a...>
Date: Thu, 2 Sep 2021 01:47:28 +0900 (JST)
Subject: [ruby-changes:67542] 0729052329 (master): Test against the target class
https://git.ruby-lang.org/ruby.git/commit/?id=0729052329 From 07290523295523f0fe7df1446c7787aab0bff878 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 2 Sep 2021 01:33:30 +0900 Subject: Test against the target class --- test/ruby/test_array.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 8de51c1..4cb4904 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -652,8 +652,8 @@ class TestArray < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_array.rb#L652 b.concat(b, b) assert_equal([4, 5, 4, 5, 4, 5], b) - assert_raise(TypeError) { [0].concat(:foo) } - assert_raise(FrozenError) { [0].freeze.concat(:foo) } + assert_raise(TypeError) { @cls[0].concat(:foo) } + assert_raise(FrozenError) { @cls[0].freeze.concat(:foo) } a = @cls[nil] def (x = Object.new).to_ary; Array.new(10) {nil} << :ok; end -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/