mirror of
https://github.com/neovim/neovim.git
synced 2025-12-04 21:52:41 +00:00
test: call scandir_next_with_dots() more than once
Also cosmetic reduction.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user