We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a47907e commit 8ae582dCopy full SHA for 8ae582d
1 file changed
tests/plenary/path_spec.lua
@@ -720,6 +720,20 @@ SOFTWARE.]]
720
assert.are.same(should, data)
721
end)
722
723
+
724
+ describe(":find_upwards", function()
725
+ it("finds files that exist", function()
726
+ local p = Path:new(debug.getinfo(1, "S").source:sub(2))
727
+ local found = p:find_upwards "README.md"
728
+ assert.are.same(found:absolute(), Path:new("README.md"):absolute())
729
+ end)
730
731
+ it("returns nil if no file is found", function()
732
733
+ local found = p:find_upwards "asdf"
734
+ assert.are.same(found, nil)
735
736
737
738
739
-- function TestPath:testIsDir()
0 commit comments