From 83f92efdb12975f46bd73575a5775d6aca3ad9b3 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Thu, 30 Jul 2015 14:12:10 -0400 Subject: [PATCH] add a test for `collect(ENV)`. ref #12327 --- test/sysinfo.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/sysinfo.jl b/test/sysinfo.jl index 90e8f149fa74b..3136227606b93 100644 --- a/test/sysinfo.jl +++ b/test/sysinfo.jl @@ -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