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

ruby-changes:23123

From: nobu <ko1@a...>
Date: Fri, 30 Mar 2012 00:03:18 +0900 (JST)
Subject: [ruby-changes:23123] nobu:r35173 (trunk): * test/ruby/lbtest.rb: print at once including newlines.

nobu	2012-03-30 00:03:05 +0900 (Fri, 30 Mar 2012)

  New Revision: 35173

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

  Log:
    * test/ruby/lbtest.rb: print at once including newlines.

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

Index: test/ruby/lbtest.rb
===================================================================
--- test/ruby/lbtest.rb	(revision 35172)
+++ test/ruby/lbtest.rb	(revision 35173)
@@ -36,13 +36,13 @@
 (n - 1).times do |i|
   Thread.start do
     sleep((rand(n) + 1) / 10.0)
-    puts "#{i}: done"
+    print "#{i}: done\n"
     lb.sync
-    puts "#{i}: cont"
+    print "#{i}: cont\n"
   end
 end
 
 lb.sync
-puts "#{n-1}: cone"
+print "#{n-1}: cone\n"
 
-puts "exit."
+print "exit.\n"

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

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