зеркало из https://github.com/github/ruby.git
Ruby can delay arbitrarily because Ruby is not a realtime system,
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8a4c23163c
Коммит
50190956c2
|
@ -156,6 +156,6 @@ BENCH
|
|||
def test_realtime_output
|
||||
sleeptime = 1.0
|
||||
realtime = Benchmark.realtime { sleep sleeptime }
|
||||
assert_in_epsilon sleeptime, realtime
|
||||
assert_operator sleeptime, :<, realtime
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче