summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/elixir/test/elixir/path_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/test/elixir/path_test.exs b/lib/elixir/test/elixir/path_test.exs
index 54c16e08c..6b43b9b5e 100644
--- a/lib/elixir/test/elixir/path_test.exs
+++ b/lib/elixir/test/elixir/path_test.exs
@@ -111,7 +111,7 @@ defmodule PathTest do
test "safe_relative_to/2" do
assert Path.safe_relative_to("local/foo/bar", "local") == {:ok, "local/foo/bar"}
- assert Path.safe_relative_to("foo/..", "local") == {:ok, "local"}
+ 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