mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] Add yamatanooroti test for symbol with backtick
https://github.com/ruby/irb/commit/4d32f0e88e
This commit is contained in:
parent
f085a6fb69
commit
d86c1a3161
1 changed files with 17 additions and 0 deletions
|
@ -153,6 +153,23 @@ begin
|
|||
EOC
|
||||
end
|
||||
|
||||
def test_symbol_with_backtick
|
||||
write_irbrc <<~'LINES'
|
||||
puts 'start IRB'
|
||||
LINES
|
||||
start_terminal(40, 80, %W{ruby -I#{@pwd}/lib #{@pwd}/exe/irb}, startup_message: 'start IRB')
|
||||
write(<<~EOC)
|
||||
:`
|
||||
EOC
|
||||
close
|
||||
assert_screen(<<~EOC)
|
||||
start IRB
|
||||
irb(main):001:0> :`
|
||||
=> :`
|
||||
irb(main):002:0>
|
||||
EOC
|
||||
end
|
||||
|
||||
private def write_irbrc(content)
|
||||
File.open(@irbrc_file, 'w') do |f|
|
||||
f.write content
|
||||
|
|
Loading…
Reference in a new issue