mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-25 10:01:05 +01:00
Add test for string with "\n" in it
This commit is contained in:
parent
b3208b08af
commit
8e06a54b1c
1 changed files with 14 additions and 0 deletions
|
@ -46,6 +46,20 @@ describe 'default strategy' do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context 'with a newline hist entry' do
|
||||||
|
before do
|
||||||
|
session.send_string('echo "\n"')
|
||||||
|
session.send_keys('enter')
|
||||||
|
|
||||||
|
session.clear
|
||||||
|
end
|
||||||
|
|
||||||
|
it do
|
||||||
|
session.send_keys('e')
|
||||||
|
wait_for { session.content }.to eq 'echo "\n"'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
context 'with a hist entry with a backslash' do
|
context 'with a hist entry with a backslash' do
|
||||||
before do
|
before do
|
||||||
session.run_command('echo "hello\nworld"')
|
session.run_command('echo "hello\nworld"')
|
||||||
|
|
Loading…
Reference in a new issue