зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
0f020f7ca4
Коммит
e57bc077f3
|
@ -85,7 +85,9 @@ class TestBasicInstructions < Test::Unit::TestCase
|
||||||
s = "OK"
|
s = "OK"
|
||||||
prev = nil
|
prev = nil
|
||||||
3.times do
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче