mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_prime.rb: cosmetic changes
* test/test_prime.rb (test_eratosthenes_works_fine_after_timeout): use spaces instead of TABs in ruby codes. [Fix GH-944] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
93a460f774
commit
31637f00fc
2 changed files with 7 additions and 2 deletions
|
@ -180,8 +180,8 @@ class TestPrime < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
begin
|
||||
Timeout.timeout(0.5) { Prime.each(7*37){} }
|
||||
flunk("timeout expected")
|
||||
Timeout.timeout(0.5) { Prime.each(7*37){} }
|
||||
flunk("timeout expected")
|
||||
rescue Timeout::Error
|
||||
end
|
||||
ensure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue