[前][次][番号順一覧][スレッド一覧]

ruby-changes:35278

From: akr <ko1@a...>
Date: Wed, 3 Sep 2014 00:48:04 +0900 (JST)
Subject: [ruby-changes:35278] akr:r47360 (trunk): Ruby can delay arbitrarily because Ruby is not a realtime system,

akr	2014-09-03 00:47:53 +0900 (Wed, 03 Sep 2014)

  New Revision: 47360

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47360

  Log:
    Ruby can delay arbitrarily because Ruby is not a realtime system,

  Modified files:
    trunk/test/benchmark/test_benchmark.rb
Index: test/benchmark/test_benchmark.rb
===================================================================
--- test/benchmark/test_benchmark.rb	(revision 47359)
+++ test/benchmark/test_benchmark.rb	(revision 47360)
@@ -156,6 +156,6 @@ BENCH https://github.com/ruby/ruby/blob/trunk/test/benchmark/test_benchmark.rb#L156
   def test_realtime_output
     sleeptime = 1.0
     realtime = Benchmark.realtime { sleep sleeptime }
-    assert_in_epsilon sleeptime, realtime
+    assert_operator sleeptime, :<, realtime
   end
 end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]