Skip to content

Commit 61e626b

Browse files
committed
Add tests for Path.expand("/") to be "/" (the issue is already fixed).
1 parent 3c40de4 commit 61e626b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/elixir/test/elixir/path_test.exs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ defmodule PathTest do
9494
end
9595

9696
test :expand_path do
97+
assert (Path.expand("/") |> strip_drive_letter_if_windows) == "/"
98+
assert (Path.expand("/foo") |> strip_drive_letter_if_windows) == "/foo"
9799
assert (Path.expand("/foo/bar") |> strip_drive_letter_if_windows) == "/foo/bar"
98100
assert (Path.expand("/foo/bar/") |> strip_drive_letter_if_windows) == "/foo/bar"
99101
assert (Path.expand("/foo/bar/.") |> strip_drive_letter_if_windows)== "/foo/bar"

0 commit comments

Comments
 (0)