Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jul 23, 2024
1 parent ccf952d commit fb5b09d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ mktempdir() do dir
@test Base.isfile_casesensitive(true_filename)
@test !Base.isfile_casesensitive(lowered_filename)

# check that case-sensitivity is preserved for relative paths
@test Base.isfile_casesensitive(joinpath("dummy", "..", true_filename))
@test !Base.isfile_casesensitive(joinpath("dummy", "..", lowered_filename))

# check that case-sensitivity only applies to basename of a path:
if isfile(lowered_filename) # case-insensitive filesystem
mkdir("cAsEtEsT")
Expand Down

0 comments on commit fb5b09d

Please sign in to comment.