mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
test: reduce some clear() calls
Use only a single clear() call in some test/functional/vimscript/ test files whose test cases have very little side effect. A downside of using a single clear() is that if a crash happens in one test case, all following test cases in the same file will also fail, but these functionalities and tests don't change very often.
This commit is contained in:
@@ -13,7 +13,7 @@ local NIL = vim.NIL
|
||||
local source = n.source
|
||||
|
||||
describe('string() function', function()
|
||||
before_each(clear)
|
||||
setup(clear)
|
||||
|
||||
describe('used to represent floating-point values', function()
|
||||
it('dumps NaN values', function()
|
||||
@@ -103,7 +103,7 @@ describe('string() function', function()
|
||||
end)
|
||||
|
||||
describe('used to represent funcrefs', function()
|
||||
before_each(function()
|
||||
setup(function()
|
||||
source([[
|
||||
function Test1()
|
||||
endfunction
|
||||
|
Reference in New Issue
Block a user