Skip to content

Commit 3c4e81b

Browse files
committed
[io grant] Test IO::Path.Str works as advertised
1 parent 86c5f9c commit 3c4e81b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

S32-io/path.t

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
use v6;
22
use Test;
33

4-
plan 1;
5-
ok 1;
4+
plan 3;
5+
6+
{ # .Str tests
7+
is-deeply '.'.IO.Str, '.', 'Str does not include CWD [relative path]';
8+
is-deeply '/'.IO.Str, '/', 'Str does not include CWD [absolute path]';
9+
is-deeply IO::Path.new(
10+
:volume<foo:>, :dirname<bar>, :basename<ber>, :SPEC(IO::Spec::Win32.new)
11+
).Str, 'foo:\bar\ber', 'Str does not include CWD [mulit-part .new()]'
12+
}
613

714

815
# vim: ft=perl6

0 commit comments

Comments
 (0)