diff options
author | aycabta <aycabta@gmail.com> | 2019-11-05 21:06:29 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-11-05 21:06:29 +0900 |
commit | 6aacef49483ed83697dc013a4b33606338dffd39 (patch) | |
tree | ffe5ca35a4bc32df90a1fdf723981dc9fe14edf3 /test/readline | |
parent | c4b627e2daf76e2f8922c62c8e0a6c2a10c8b435 (diff) | |
download | ruby-6aacef49483ed83697dc013a4b33606338dffd39.tar.gz |
Assert return value of Readline.readline only if Ruby is before 2.7
Diffstat (limited to 'test/readline')
-rw-r--r-- | test/readline/test_readline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index e71d329973..4e82d46d91 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -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) |