diff options
author | aycabta <aycabta@gmail.com> | 2021-09-08 22:22:58 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-10 04:59:25 +0900 |
commit | d86c1a31613adf6b97f79dbdc2ebc63135b64198 (patch) | |
tree | 4d02e9a2f61488a84337b58bbcb71de16cdc7d13 /test | |
parent | f085a6fb6953a23e555cae7ffe4274927c6b0961 (diff) | |
download | ruby-d86c1a31613adf6b97f79dbdc2ebc63135b64198.tar.gz |
[ruby/irb] Add yamatanooroti test for symbol with backtick
https://github.com/ruby/irb/commit/4d32f0e88e
Diffstat (limited to 'test')
-rw-r--r-- | test/irb/yamatanooroti/test_rendering.rb | 17 |
1 files changed, 17 insertions, 0 deletions
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 |