зеркало из https://github.com/github/ruby.git
prime.rb: remove alias after timeout test
* test/test_prime.rb: remove alias after timeout test. * lib/prime.rb: fix typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
508091d9cc
Коммит
82092f4bb7
|
@ -419,7 +419,7 @@ class Prime
|
|||
end
|
||||
end
|
||||
|
||||
# Internal use. An implementation of eratosthenes' sieve
|
||||
# Internal use. An implementation of Eratosthenes' sieve
|
||||
class EratosthenesSieve
|
||||
include Singleton
|
||||
|
||||
|
|
|
@ -189,6 +189,7 @@ class TestPrime < Test::Unit::TestCase
|
|||
ensure
|
||||
class << Integer
|
||||
alias_method :sqrt, :org_sqrt
|
||||
remove_method :org_sqrt
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче