mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
508091d9cc
commit
82092f4bb7
2 changed files with 2 additions and 1 deletions
|
@ -419,7 +419,7 @@ class Prime
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Internal use. An implementation of eratosthenes' sieve
|
# Internal use. An implementation of Eratosthenes' sieve
|
||||||
class EratosthenesSieve
|
class EratosthenesSieve
|
||||||
include Singleton
|
include Singleton
|
||||||
|
|
||||||
|
|
|
@ -189,6 +189,7 @@ class TestPrime < Test::Unit::TestCase
|
||||||
ensure
|
ensure
|
||||||
class << Integer
|
class << Integer
|
||||||
alias_method :sqrt, :org_sqrt
|
alias_method :sqrt, :org_sqrt
|
||||||
|
remove_method :org_sqrt
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue