Skip to content

Commit 4d32f0e

Browse files
committed
Add yamatanooroti test for symbol with backtick
1 parent 0aa2425 commit 4d32f0e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/irb/yamatanooroti/test_rendering.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,23 @@ class A def b; self; end; def c; true; end; end;
153153
EOC
154154
end
155155

156+
def test_symbol_with_backtick
157+
write_irbrc <<~'LINES'
158+
puts 'start IRB'
159+
LINES
160+
start_terminal(40, 80, %W{ruby -I#{@pwd}/lib #{@pwd}/exe/irb}, startup_message: 'start IRB')
161+
write(<<~EOC)
162+
:`
163+
EOC
164+
close
165+
assert_screen(<<~EOC)
166+
start IRB
167+
irb(main):001:0> :`
168+
=> :`
169+
irb(main):002:0>
170+
EOC
171+
end
172+
156173
private def write_irbrc(content)
157174
File.open(@irbrc_file, 'w') do |f|
158175
f.write content

0 commit comments

Comments
 (0)