Skip to content

Commit

Permalink
Merge pull request #9 from ruby/test-lineno
Browse files Browse the repository at this point in the history
Move embedded lines outside the here document
  • Loading branch information
hsbt authored Dec 9, 2021
2 parents 586089f + 1d19f70 commit 8ad1d3b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/readline/test_readline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -485,18 +485,17 @@ def test_interrupt_in_other_thread
omit "Skip Readline 7.0" if Readline::VERSION == "7.0"
omit unless respond_to?(:assert_ruby_status)
omit if /mswin|mingw/ =~ RUBY_PLATFORM
if defined?(TestReadline) && self.class == TestReadline
use = "use_ext_readline"
elsif defined?(TestRelineAsReadline) && self.class == TestRelineAsReadline
use = "use_lib_reline"
end
code = <<-"end;"
$stdout.sync = true
require 'readline'
require 'helper'
puts "Readline::VERSION is \#{Readline::VERSION}."
#{
if defined?(TestReadline) && self.class == TestReadline
"use_ext_readline"
elsif defined?(TestRelineAsReadline) && self.class == TestRelineAsReadline
"use_lib_reline"
end
}
#{use}
Readline.input = STDIN
# 0. Send SIGINT to this script.
begin
Expand Down

0 comments on commit 8ad1d3b

Please sign in to comment.