mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
9eb6a44564
commit
542c79f20d
@ -5,6 +5,8 @@ local funcs = helpers.funcs
|
|||||||
local exc_exec = helpers.exc_exec
|
local exc_exec = helpers.exc_exec
|
||||||
|
|
||||||
describe('printf()', function()
|
describe('printf()', function()
|
||||||
|
before_each(clear)
|
||||||
|
|
||||||
it('works with zero and %b', function()
|
it('works with zero and %b', function()
|
||||||
eq('0', funcs.printf('%lb', 0))
|
eq('0', funcs.printf('%lb', 0))
|
||||||
eq('0', funcs.printf('%llb', 0))
|
eq('0', funcs.printf('%llb', 0))
|
||||||
|
Loading…
Reference in New Issue
Block a user