1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

updated test/test_prime.rb with new method name

This commit is contained in:
robertjlooby 2013-06-27 23:04:45 -05:00
parent 996517bdbb
commit c8f780987f

View file

@ -154,7 +154,7 @@ class TestPrime < Test::Unit::TestCase
# simulates that Timeout.timeout interrupts Prime::EratosthenesSieve#extend_table
def sieve.Integer(n)
n = super(n)
sleep 10 if /extend_table/ =~ caller.first
sleep 10 if /compute_primes/ =~ caller.first
return n
end