Skip to content

Commit

Permalink
add a test for collect(ENV). ref #12327
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jul 30, 2015
1 parent f40f4a5 commit 83f92ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/sysinfo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ end
withenv("TEST"=>"") do
@test ENV["TEST"] == ""
end

let c = collect(ENV)
@test isa(c, Vector)
@test length(ENV) == length(c)
@test isempty(ENV) || first(ENV) in c
end

0 comments on commit 83f92ef

Please sign in to comment.