aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/printf_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-01-21 01:24:10 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-01-21 01:34:56 -0500
commit542c79f20d7835951e56a3c9f86c9c7ee9b0a531 (patch)
treebd3bca0215a3678385d4071d4f5807a6a3edb96f /test/functional/eval/printf_spec.lua
parent9eb6a4456491c1b4dec8c1ff07c4b33220c3bab2 (diff)
downloadrneovim-542c79f20d7835951e56a3c9f86c9c7ee9b0a531.tar.gz
rneovim-542c79f20d7835951e56a3c9f86c9c7ee9b0a531.tar.bz2
rneovim-542c79f20d7835951e56a3c9f86c9c7ee9b0a531.zip
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.
Diffstat (limited to 'test/functional/eval/printf_spec.lua')
-rw-r--r--test/functional/eval/printf_spec.lua2
1 files changed, 2 insertions, 0 deletions
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))