From efa059c5a4611629890e28987a83aa781952b78c Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 1 Aug 2015 23:33:54 -0400 Subject: test: call scandir_next_with_dots() more than once Also cosmetic reduction. --- test/functional/eval/glob_spec.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/functional/eval') 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) -- cgit