test: call scandir_next_with_dots() more than once

Also cosmetic reduction.
This commit is contained in:
Justin M. Keyes
2015-08-01 23:33:54 -04:00
parent dd7c7efcfb
commit efa059c5a4
2 changed files with 13 additions and 16 deletions

View File

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