Skip to content

Commit

Permalink
Add yamatanooroti test for symbol with backtick
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 8, 2021
1 parent 0aa2425 commit 4d32f0e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/irb/yamatanooroti/test_rendering.rb
Expand Up @@ -153,6 +153,23 @@ class A def b; self; end; def c; true; end; end;
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
Expand Down

0 comments on commit 4d32f0e

Please sign in to comment.