From 777dafdc4602a07cacaae59e57f9262423aa66fd Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 22 Sep 2025 10:28:26 +0800 Subject: 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. --- test/functional/vimscript/printf_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/functional/vimscript/printf_spec.lua') diff --git a/test/functional/vimscript/printf_spec.lua b/test/functional/vimscript/printf_spec.lua index 1fd5c3c9b6..91c3b996a4 100644 --- a/test/functional/vimscript/printf_spec.lua +++ b/test/functional/vimscript/printf_spec.lua @@ -9,7 +9,7 @@ local api = n.api local exc_exec = n.exc_exec describe('printf()', function() - before_each(clear) + setup(clear) it('works with zero and %b', function() eq('0', fn.printf('%lb', 0)) -- cgit