From 542c79f20d7835951e56a3c9f86c9c7ee9b0a531 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 21 Jan 2016 01:24:10 -0500 Subject: [PATCH] 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. --- test/functional/eval/printf_spec.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/eval/printf_spec.lua b/test/functional/eval/printf_spec.lua index 00afb30e17..6180f4156a 100644 --- a/test/functional/eval/printf_spec.lua +++ b/test/functional/eval/printf_spec.lua @@ -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))