зеркало из https://github.com/github/ruby.git
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b3377eaa13
Коммит
6e6dcf2a6c
|
@ -185,7 +185,7 @@ class TestIO_Console < Test::Unit::TestCase
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче