diff options
author | Andrea Leopardi <an.leopardi@gmail.com> | 2022-01-06 15:27:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-06 15:27:03 +0200 |
commit | 9929dddaed613f7f4809af5e119403a85defb989 (patch) | |
tree | e530888ef12e15eea68b1b26bb8a2b9625823dd7 | |
parent | 953c730cc8addd23a079dfa3a4850a40d299c2a0 (diff) | |
download | elixir-9929dddaed613f7f4809af5e119403a85defb989.tar.gz |
Fix Windows build (#11548)
-rw-r--r-- | lib/elixir/test/elixir/path_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/elixir/test/elixir/path_test.exs b/lib/elixir/test/elixir/path_test.exs index 0a3702e49..6b43b9b5e 100644 --- a/lib/elixir/test/elixir/path_test.exs +++ b/lib/elixir/test/elixir/path_test.exs @@ -110,8 +110,8 @@ defmodule PathTest do end test "safe_relative_to/2" do - assert Path.safe_relative_to("local/foo/bar", "local") == {:ok, "foo/bar"} - assert Path.safe_relative_to("foo/..", "local") == {:ok, "local"} + assert Path.safe_relative_to("local/foo/bar", "local") == {:ok, "local/foo/bar"} + assert Path.safe_relative_to("foo/..", "local") == {:ok, ""} assert Path.safe_relative_to("..", "local/foo") == :error assert Path.safe_relative_to("d:/usr/local/foo", "D:/") == :error assert Path.safe_relative_to("D:/usr/local/foo", "d:/") == :error |