test: correct order of arguments to eq() and neq()

This commit is contained in:
zeertzjq
2022-04-26 11:35:05 +08:00
parent 5d159a7faa
commit 519e4c4472
14 changed files with 101 additions and 101 deletions

View File

@@ -17,20 +17,20 @@ describe('macros', function()
it('can be recorded and replayed', function()
feed('qiahello<esc>q')
expect('hello')
eq(eval('@i'), 'ahello')
eq('ahello', eval('@i'))
feed('@i')
expect('hellohello')
eq(eval('@i'), 'ahello')
eq('ahello', eval('@i'))
end)
it('applies maps', function()
command('imap x l')
command('nmap l a')
feed('qilxxx<esc>q')
expect('lll')
eq(eval('@i'), 'lxxx')
eq('lxxx', eval('@i'))
feed('@i')
expect('llllll')
eq(eval('@i'), 'lxxx')
eq('lxxx', eval('@i'))
end)
it('can be replayed with Q', function()