Skip to content

Commit bc2db2e

Browse files
add tests
1 parent ccf952d commit bc2db2e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/loading.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ mktempdir() do dir
7777
@test Base.isfile_casesensitive(true_filename)
7878
@test !Base.isfile_casesensitive(lowered_filename)
7979

80+
# check that case-sensitivity is preserved for relative paths with ghost directories:
81+
@test Base.isfile_casesensitive(joinpath("nonexistent", "..", true_filename))
82+
@test !Base.isfile_casesensitive(joinpath("nonexistent", "..", lowered_filename))
83+
84+
# check that case-sensitivity is preserved for relative paths with real directories:
85+
mkdir("realdir")
86+
@test Base.isfile_casesensitive(joinpath("realdir", "..", true_filename))
87+
@test !Base.isfile_casesensitive(joinpath("realdir", "..", lowered_filename))
88+
8089
# check that case-sensitivity only applies to basename of a path:
8190
if isfile(lowered_filename) # case-insensitive filesystem
8291
mkdir("cAsEtEsT")

0 commit comments

Comments
 (0)