mirror of
https://github.com/neovim/neovim.git
synced 2025-11-16 07:11:20 +00:00
Merge pull request #4924 from jamessan/test-cleanup
Functional test cleanup
This commit is contained in:
@@ -39,7 +39,7 @@ describe(':emenu', function()
|
||||
end)
|
||||
|
||||
it('executes correct bindings in command mode', function()
|
||||
feed('ithis is a sentence<esc>^"+yiwo<esc>')
|
||||
feed('ithis is a sentence<esc>^yiwo<esc>')
|
||||
|
||||
-- Invoke "Edit.Paste" in normal-mode.
|
||||
nvim('command', 'emenu Edit.Paste')
|
||||
|
||||
@@ -6,10 +6,13 @@ local eq, eval, clear, write_file, execute, source =
|
||||
helpers.execute, helpers.source
|
||||
|
||||
describe(':write', function()
|
||||
it('&backupcopy=auto preserves symlinks', function()
|
||||
clear('set backupcopy=auto')
|
||||
after_each(function()
|
||||
os.remove('test_bkc_file.txt')
|
||||
os.remove('test_bkc_link.txt')
|
||||
end)
|
||||
|
||||
it('&backupcopy=auto preserves symlinks', function()
|
||||
clear('set backupcopy=auto')
|
||||
write_file('test_bkc_file.txt', 'content0')
|
||||
execute("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
|
||||
source([[
|
||||
@@ -23,8 +26,6 @@ describe(':write', function()
|
||||
|
||||
it('&backupcopy=no replaces symlink with new file', function()
|
||||
clear('set backupcopy=no')
|
||||
os.remove('test_bkc_file.txt')
|
||||
os.remove('test_bkc_link.txt')
|
||||
write_file('test_bkc_file.txt', 'content0')
|
||||
execute("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
|
||||
source([[
|
||||
|
||||
Reference in New Issue
Block a user