ruby-changes:16315
From: akr <ko1@a...>
Date: Sat, 12 Jun 2010 01:14:22 +0900 (JST)
Subject: [ruby-changes:16315] Ruby:r28287 (trunk): add sleep.
akr 2010-06-12 01:14:15 +0900 (Sat, 12 Jun 2010) New Revision: 28287 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28287 Log: add sleep. Modified files: trunk/test/io/console/test_io_console.rb Index: test/io/console/test_io_console.rb =================================================================== --- test/io/console/test_io_console.rb (revision 28286) +++ test/io/console/test_io_console.rb (revision 28287) @@ -20,7 +20,9 @@ PTY.open {|m, s| assert(s.echo?) m.print "a\n" + sleep 0.1 s.print "b\n" + sleep 0.1 assert_equal("a\r\nb\r\n", m.readpartial(10)) assert_equal("a\n", s.readpartial(10)) s.noecho { @@ -32,7 +34,9 @@ } assert(s.echo?) m.print "a\n" + sleep 0.1 s.print "b\n" + sleep 0.1 assert_equal("a\r\nb\r\n", m.readpartial(10)) assert_equal("a\n", s.readpartial(10)) } @@ -42,7 +46,9 @@ PTY.open {|m, s| assert(s.echo?) m.print "a\n" + sleep 0.1 s.print "b\n" + sleep 0.1 assert_equal("a\r\nb\r\n", m.readpartial(10)) assert_equal("a\n", s.readpartial(10)) s.echo = false @@ -54,7 +60,9 @@ s.echo = true assert(s.echo?) m.print "a\n" + sleep 0.1 s.print "b\n" + sleep 0.1 assert_equal("a\r\nb\r\n", m.readpartial(10)) assert_equal("a\n", s.readpartial(10)) } @@ -63,8 +71,11 @@ def test_iflush PTY.open {|m, s| m.print "a\n" + sleep 0.1 s.iflush + sleep 0.1 m.print "b\n" + sleep 0.1 assert_equal("a\r\nb\r\n", m.readpartial(10)) assert_equal("b\n", s.readpartial(10)) } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/