From d86c1a31613adf6b97f79dbdc2ebc63135b64198 Mon Sep 17 00:00:00 2001 From: aycabta Date: Wed, 8 Sep 2021 22:22:58 +0900 Subject: [ruby/irb] Add yamatanooroti test for symbol with backtick https://github.com/ruby/irb/commit/4d32f0e88e --- test/irb/yamatanooroti/test_rendering.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/irb/yamatanooroti/test_rendering.rb b/test/irb/yamatanooroti/test_rendering.rb index bacc26b31f..ac6df30c62 100644 --- a/test/irb/yamatanooroti/test_rendering.rb +++ b/test/irb/yamatanooroti/test_rendering.rb @@ -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 -- cgit v1.2.3