Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test non-existing env variables
  • Loading branch information
moritz committed Oct 2, 2011
1 parent d7a95cb commit bd97a90
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S02-magicals/env.t
Expand Up @@ -4,7 +4,7 @@ use v6;

use Test;
# L<S28/Named variables>
plan 14;
plan 16;

if $*OS eq "browser" {
skip_rest "Programs running in browsers don't have access to regular IO.";
Expand Down Expand Up @@ -139,4 +139,11 @@ ok !%*ENV.exists("does_not_exist"), "exists() returns false on a not defined env
1;
}

# RT #78256
{
nok %*ENV<NOSUCHENVVAR>.defined, 'non-existing vars are undefined';
nok %*ENV.exists('NOSUCHENVVAR'), 'non-existing vars do not exist';

}

# vim: ft=perl6

0 comments on commit bd97a90

Please sign in to comment.