mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/test_prime.rb: update method name in comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
27ed9f1d29
commit
fe378f03f7
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ class TestPrime < Test::Unit::TestCase
|
|||
sieve = Prime::EratosthenesSieve.instance
|
||||
sieve.send(:initialize)
|
||||
begin
|
||||
# simulates that Timeout.timeout interrupts Prime::EratosthenesSieve#extend_table
|
||||
# simulates that Timeout.timeout interrupts Prime::EratosthenesSieve#compute_primes
|
||||
def sieve.Integer(n)
|
||||
n = super(n)
|
||||
sleep 10 if /compute_primes/ =~ caller.first
|
||||
|
|
Loading…
Reference in a new issue