ruby-changes:67671
From: aycabta <ko1@a...>
Date: Fri, 10 Sep 2021 04:59:38 +0900 (JST)
Subject: [ruby-changes:67671] d86c1a3161 (master): [ruby/irb] Add yamatanooroti test for symbol with backtick
https://git.ruby-lang.org/ruby.git/commit/?id=d86c1a3161 From d86c1a31613adf6b97f79dbdc2ebc63135b64198 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> 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 bacc26b..ac6df30 100644 --- a/test/irb/yamatanooroti/test_rendering.rb +++ b/test/irb/yamatanooroti/test_rendering.rb @@ -153,6 +153,23 @@ begin https://github.com/ruby/ruby/blob/trunk/test/irb/yamatanooroti/test_rendering.rb#L153 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.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/