We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4682d96 commit 98917dcCopy full SHA for 98917dc
S32-io/dir.t
@@ -3,7 +3,7 @@ use lib 't/spec/packages';
3
use Test;
4
use Test::Util;
5
6
-plan 15;
+plan 16;
7
8
# L<S32::IO/Functions/"=item dir">
9
@@ -60,4 +60,13 @@ is_run 'dir | say', {
60
$tested or flunk 'expected a dir $*CWD test but it never ran';
61
}
62
63
+subtest "dir-created IO::Paths' absoluteness controlled by invocant" => {
64
+ plan 2;
65
+ my @files = '.'.IO.dir;
66
+ cmp-ok +@files, '==', +@files.grep({not .is-absolute}), 'relative invocant';
67
+
68
+ @files = '.'.IO.absolute.IO.dir;
69
+ cmp-ok +@files, '==', +@files.grep({ .is-absolute}), 'absolute invocant';
70
+}
71
72
# vim: ft=perl6
0 commit comments