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:
Justin M. Keyes 2016-01-21 01:24:10 -05:00
parent 9eb6a44564
commit 542c79f20d

View File

@ -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))