aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/glob_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-08-01 23:33:54 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-08-01 23:33:54 -0400
commitefa059c5a4611629890e28987a83aa781952b78c (patch)
tree5d7ea0510ec08512cc929adc30040acabd8556a8 /test/functional/eval/glob_spec.lua
parentdd7c7efcfb37342ccd9168977b2431d16de7b3cb (diff)
downloadrneovim-efa059c5a4611629890e28987a83aa781952b78c.tar.gz
rneovim-efa059c5a4611629890e28987a83aa781952b78c.tar.bz2
rneovim-efa059c5a4611629890e28987a83aa781952b78c.zip
test: call scandir_next_with_dots() more than once
Also cosmetic reduction.
Diffstat (limited to 'test/functional/eval/glob_spec.lua')
-rw-r--r--test/functional/eval/glob_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/eval/glob_spec.lua b/test/functional/eval/glob_spec.lua
index 977b82d733..136417249c 100644
--- a/test/functional/eval/glob_spec.lua
+++ b/test/functional/eval/glob_spec.lua
@@ -14,8 +14,12 @@ end)
describe('glob()', function()
it("glob('.*') returns . and .. ", function()
eq({'.', '..'}, eval("glob('.*', 0, 1)"))
+ -- Do it again to verify scandir_next_with_dots() internal state.
+ eq({'.', '..'}, eval("glob('.*', 0, 1)"))
end)
it("glob('*') returns an empty list ", function()
eq({}, eval("glob('*', 0, 1)"))
+ -- Do it again to verify scandir_next_with_dots() internal state.
+ eq({}, eval("glob('*', 0, 1)"))
end)
end)