Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #123308
  • Loading branch information
usev6 committed Mar 12, 2015
1 parent b2386d1 commit 29d4133
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S32-io/dir.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 12;
plan 13;

# L<S32::IO/Functions/"=item dir">

Expand Down Expand Up @@ -31,3 +31,12 @@ nok dir( test=> none('.', '..', 't') ).grep(*.basename eq 't'), "can exclude t/

#?rakudo todo '$*CWD misses slash at end still'
is dir('t').[0].dirname, $*CWD ~ 't', 'dir("t") returns paths with .dirname of "t"';

# RT #123308
{
my $res = dir "/";
ok $res !~~ m/ "/" ** 2 /,
'results for \'dir "/"\' do not begin with 2 slashes';
}

# vim: ft=perl6

0 comments on commit 29d4133

Please sign in to comment.