mirror of
https://github.com/neovim/neovim.git
synced 2025-11-16 15:21:20 +00:00
test: printf_spec: fix missing setup
before_each(clear) is required to init the test harness for single-test runs, and also to ensure a known environment for each test.
This commit is contained in:
@@ -5,6 +5,8 @@ local funcs = helpers.funcs
|
||||
local exc_exec = helpers.exc_exec
|
||||
|
||||
describe('printf()', function()
|
||||
before_each(clear)
|
||||
|
||||
it('works with zero and %b', function()
|
||||
eq('0', funcs.printf('%lb', 0))
|
||||
eq('0', funcs.printf('%llb', 0))
|
||||
|
||||
Reference in New Issue
Block a user