Skip to content

Commit a8eef18

Browse files
committed
Adapt tests to new dir() default settings
1 parent 2c34a36 commit a8eef18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

S32-io/dir.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ ok (@files = dir()), "dir() runs in cwd()";
1111
# see roast's README as for why there is always a t/ available
1212
#?niecza skip "Grepping Str against a list of IO::Path does not work"
1313
ok @files.grep('t'), 'current directory contains a t/ dir';
14-
ok @files.grep(*.IO.basename eq 't'), 'current directory contains a t/ dir';
15-
isa_ok @files[0], Str, 'dir() returns strings';
16-
is @files[0].IO.dirname, '.', 'dir() returns Str object in the current directory';
14+
ok @files.grep(*.basename eq 't'), 'current directory contains a t/ dir';
15+
isa_ok @files[0], IO::Path, 'dir() returns IO::Path';
16+
is @files[0].dirname, '.', 'dir() returns IO::Path object in the current directory';
1717

1818
#?niecza 3 skip "Grepping Str against a list of IO::Path does not work"
1919
nok @files.grep('.'|'..'), '"." and ".." are not returned';
@@ -24,6 +24,6 @@ nok dir( test=> none('.', '..', 't') ).grep('t'), "can exclude t/ dir";
2424
# Niecza also seems to need the ~, alas.
2525
nok @files.grep(*.IO.basename eq '.'|'..'), '"." and ".." are not returned';
2626
is +dir(:test).grep(*.IO.basename eq '.'|'..'), 2, "... unless you override :test";
27-
nok dir( test=> none('.', '..', 't') ).grep(*.IO.basename eq 't'), "can exclude t/ dir";
27+
nok dir( test=> none('.', '..', 't') ).grep(*.basename eq 't'), "can exclude t/ dir";
2828

2929
is dir('t').[0].IO.dirname, 't', 'dir("t") returns paths with .dirname of "t"';

0 commit comments

Comments
 (0)