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.
2 parents 2c17007 + 5b2eb54 commit 5dbd91eCopy full SHA for 5dbd91e
lib/elixir/test/elixir/path_test.exs
@@ -38,6 +38,12 @@ defmodule PathTest do
38
assert Path.relative("/usr/local/bin") == "usr/local/bin"
39
assert Path.relative("usr/local/bin") == "usr/local/bin"
40
assert Path.relative("../usr/local/bin") == "../usr/local/bin"
41
+
42
+ assert Path.relative_to("D:/usr/local/foo", "D:/usr/") == "local/foo"
43
+ assert Path.relative_to("D:/usr/local/foo", "d:/usr/") == "local/foo"
44
+ assert Path.relative_to("d:/usr/local/foo", "D:/usr/") == "local/foo"
45
+ assert Path.relative_to("D:/usr/local/foo", "d:") == "usr/local/foo"
46
+ assert Path.relative_to("D:/usr/local/foo", "D:") == "usr/local/foo"
47
end
48
49
test :type_win do
0 commit comments