From e57bc077f330d81b5870d214087beb939062f2e8 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 5 Jul 2012 14:42:25 +0000 Subject: never evaluated * test/ruby/test_basicinstructions.rb (test_regexp): fix never evaluated assertion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_basicinstructions.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/ruby/test_basicinstructions.rb b/test/ruby/test_basicinstructions.rb index 7e57530d72..e93b339377 100644 --- a/test/ruby/test_basicinstructions.rb +++ b/test/ruby/test_basicinstructions.rb @@ -85,7 +85,9 @@ class TestBasicInstructions < Test::Unit::TestCase s = "OK" prev = nil 3.times do - assert_equal prev.object_id, (prev ||= /#{s}/o).object_id if prev + re = /#{s}/o + assert_same prev, re if prev + prev = re end end -- cgit v1.2.3