From fce6830f7b2d0252e4a411b7a829dbe2fa39c879 Mon Sep 17 00:00:00 2001 From: Tracy Wadleigh Date: Fri, 19 Aug 2016 07:27:20 -0700 Subject: [PATCH] Add failing test for #18141. --- test/env.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/env.jl b/test/env.jl index 23e8710398cab..030fe3cf9b590 100644 --- a/test/env.jl +++ b/test/env.jl @@ -63,3 +63,10 @@ end # Test for #10853 @test withenv(Dict{Any,Any}()...) do; true; end + +# Test for #18141 +for (k, v) in ENV + if length(v) > 0 + @test v[end] != '\0' + end +end