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

ruby-changes:22882

From: naruse <ko1@a...>
Date: Tue, 6 Mar 2012 18:47:31 +0900 (JST)
Subject: [ruby-changes:22882] naruse:r34931 (trunk): Fix typo.

naruse	2012-03-06 18:47:17 +0900 (Tue, 06 Mar 2012)

  New Revision: 34931

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

  Log:
    Fix typo.
    
    reported by Nobuhiro IMAI.$
    https://twitter.com/no6v/status/176959588531314688

  Modified files:
    trunk/test/ruby/test_sleep.rb

Index: test/ruby/test_sleep.rb
===================================================================
--- test/ruby/test_sleep.rb	(revision 34930)
+++ test/ruby/test_sleep.rb	(revision 34931)
@@ -6,7 +6,7 @@
     start = Time.now
     sleep 5
     slept = Time.now-start
-    bottom = /linux/ =~ RUBY_PLATFORM && /Linux ([\d.]+)/ =~ `uname -sr` && ($1.split('.')<=>%w/2 6.18/)<1 ? 4.99 : 5.0
+    bottom = /linux/ =~ RUBY_PLATFORM && /Linux ([\d.]+)/ =~ `uname -sr` && ($1.split('.')<=>%w/2 6 18/)<1 ? 4.99 : 5.0
     assert_operator(bottom, :<=, slept)
     assert_operator(slept, :<=, 6.0, "[ruby-core:18015]: longer than expected")
   ensure

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

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