mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
refactor: format test/*
This commit is contained in:
@@ -10,8 +10,10 @@ before_each(clear)
|
||||
|
||||
describe('uniq()', function()
|
||||
it('errors out when processing special values', function()
|
||||
eq('Vim(call):E362: Using a boolean value as a Float',
|
||||
exc_exec('call uniq([v:true, v:false], "f")'))
|
||||
eq(
|
||||
'Vim(call):E362: Using a boolean value as a Float',
|
||||
exc_exec('call uniq([v:true, v:false], "f")')
|
||||
)
|
||||
end)
|
||||
|
||||
it('can yield E882 and stop filtering after that', function()
|
||||
@@ -23,7 +25,9 @@ describe('uniq()', function()
|
||||
return (a:a > a:b) - (a:a < a:b)
|
||||
endfunction
|
||||
]])
|
||||
eq('Vim(let):E745: Using a List as a Number',
|
||||
pcall_err(command, 'let fl = uniq([0, 0, [], 1, 1], "Cmp")'))
|
||||
eq(
|
||||
'Vim(let):E745: Using a List as a Number',
|
||||
pcall_err(command, 'let fl = uniq([0, 0, [], 1, 1], "Cmp")')
|
||||
)
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user