ruby-changes:57854
From: Yusuke <ko1@a...>
Date: Sat, 21 Sep 2019 19:24:48 +0900 (JST)
Subject: [ruby-changes:57854] 5cb283217b (master): test/ruby/test_assignment.rb: use bug number for assert message
https://git.ruby-lang.org/ruby.git/commit/?id=5cb283217b From 5cb283217b713605c6bddc527f96bbc773fd1fb9 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sat, 21 Sep 2019 19:23:47 +0900 Subject: test/ruby/test_assignment.rb: use bug number for assert message to suppress variable unused warning diff --git a/test/ruby/test_assignment.rb b/test/ruby/test_assignment.rb index 164d1cc..bf6602a 100644 --- a/test/ruby/test_assignment.rb +++ b/test/ruby/test_assignment.rb @@ -119,31 +119,31 @@ class TestAssignment < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_assignment.rb#L119 def []=(i, a); 42; end end - assert_raise(NoMethodError) { + assert_raise(NoMethodError, bug11096) { o.instance_eval {o.foo = 1} } - assert_nothing_raised(NoMethodError) { + assert_nothing_raised(NoMethodError, bug11096) { assert_equal(1, o.instance_eval {self.foo = 1}) } - assert_raise(NoMethodError) { + assert_raise(NoMethodError, bug11096) { o.instance_eval {o[0] = 1} } - assert_nothing_raised(NoMethodError) { + assert_nothing_raised(NoMethodError, bug11096) { assert_equal(1, o.instance_eval {self[0] = 1}) } - assert_nothing_raised(NoMethodError) { + assert_nothing_raised(NoMethodError, bug11096) { o.instance_eval {self.foo += 1} } - assert_nothing_raised(NoMethodError) { + assert_nothing_raised(NoMethodError, bug11096) { o.instance_eval {self.foo &&= 1} } - assert_nothing_raised(NoMethodError) { + assert_nothing_raised(NoMethodError, bug11096) { o.instance_eval {self[0] += 1} } - assert_nothing_raised(NoMethodError) { + assert_nothing_raised(NoMethodError, bug11096) { o.instance_eval {self[0] &&= 1} } end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/