Skip to content

Commit

Permalink
[v6.d REVIEW] use more precise test for .path
Browse files Browse the repository at this point in the history
Orig: 726652269
  • Loading branch information
zoffixznet committed Sep 15, 2018
1 parent 40adba0 commit 205aa81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions S32-io/io-spec-unix.t
@@ -1,5 +1,7 @@
use v6;
use lib $?FILE.IO.parent(2).add: 'packages';
use Test;
use Test::Util;
# L<S32::IO/IO::Spec>

plan 133;
Expand Down Expand Up @@ -80,9 +82,9 @@ nok $Unix.is-absolute( '..' ), 'is-absolute: nok ".."';
my $path = %*ENV<PATH>;
%*ENV<PATH> = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:';
my @want = </usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games .>;
is-deeply $Unix.path, @want.Seq, 'path';
is-eqv $Unix.path, @want.Seq, 'path';
%*ENV<PATH> = '';
is-deeply $Unix.path, ().Seq, 'no path';
is-eqv $Unix.path, ().Seq, 'no path';
%*ENV<PATH> = $path;

my %splitpath = (
Expand Down

0 comments on commit 205aa81

Please sign in to comment.