mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/prime.rb (Prime::EratosthenesGenerator,
Prime::EratosthenesSieve): New implementation by robertjlooby <robertjlooby AT gmail.com>. * test/test_prime.rb: updated with new method name commit 4b6090ea852d63b26e02796c69b41caa0fa95077 Merge:ceda881c8f7809Author: Yuki Sonoda (Yugui) <yugui@yugui.jp> Date: Mon Jul 15 12:50:04 2013 +0900 Merge commit 'c8f780987f' Conflicts: lib/prime.rb commitc8f780987fAuthor: robertjlooby <robertjlooby@gmail.com> Date: Thu Jun 27 23:04:45 2013 -0500 updated test/test_prime.rb with new method name commit996517bdbbAuthor: robertjlooby <robertjlooby@gmail.com> Date: Thu Jun 27 22:59:39 2013 -0500 new implementation of Prime::EratosthenesGenerator and Prime::EratosthenesSieve git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ceda881601
commit
def83bff91
3 changed files with 44 additions and 55 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue