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

ruby-changes:40919

From: nobu <ko1@a...>
Date: Wed, 9 Dec 2015 16:47:00 +0900 (JST)
Subject: [ruby-changes:40919] nobu:r52998 (trunk): test_io_console.rb: ignore echo back

nobu	2015-12-09 16:46:47 +0900 (Wed, 09 Dec 2015)

  New Revision: 52998

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

  Log:
    test_io_console.rb: ignore echo back
    
    * test/io/console/test_io_console.rb (test_getpass): ignore echo
      back of input from the master side.  some systems seem echo back
      but other may not.

  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 52997)
+++ test/io/console/test_io_console.rb	(revision 52998)
@@ -185,7 +185,7 @@ class TestIO_Console < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L185
     run_pty("p IO.console.getpass('> ')") do |r, w|
       assert_equal("> ", r.readpartial(10))
       w.print "asdf\n"
-      assert_equal("\r\n", r.gets)
+      assert_include(r.gets, "\n")
       assert_equal("\"asdf\"", r.gets.chomp)
     end
   end

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

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