Skip to content

Commit

Permalink
Update file.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Nov 9, 2021
1 parent e6d4b33 commit d060bf2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions test/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,14 @@ using Random
end

@testset "tempname with parent" begin
t = tempname()
@test dirname(t) == tempdir()
mktempdir() do d
t = tempname(d)
@test dirname(t) == d
t1 = tempname()
@info "" t1
@test dirname(t1) == tempdir()
mktempdir() do d2
t2 = tempname(d2)
@info "" d2
@info "" t2
@test dirname(t2) == d2
end
@test_throws ArgumentError tempname(randstring())
end
Expand Down

0 comments on commit d060bf2

Please sign in to comment.