зеркало из https://github.com/github/ruby.git
Assert return value of Readline.readline only if Ruby is before 2.7
This commit is contained in:
Родитель
c4b627e2da
Коммит
6aacef4948
|
@ -36,7 +36,7 @@ module BasetestReadline
|
|||
Readline.readline("> ", true)
|
||||
}
|
||||
assert_equal("hello", line)
|
||||
assert_equal(true, line.tainted?)
|
||||
assert_equal(true, line.tainted?) if RUBY_VERSION < '2.7'
|
||||
stdout.rewind
|
||||
assert_equal("> ", stdout.read(2))
|
||||
assert_equal(1, Readline::HISTORY.length)
|
||||
|
|
Загрузка…
Ссылка в новой задаче