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 fd308be commit 95d68a2Copy full SHA for 95d68a2
S32-io/io-path.t
@@ -3,7 +3,7 @@ use lib <t/spec/packages/>;
3
use Test;
4
use Test::Util;
5
6
-plan 31;
+plan 32;
7
8
# L<S32::IO/IO::Path>
9
@@ -241,3 +241,16 @@ subtest '.sibling' => {
241
is-path IO::Path::Win32.new('C:/').sibling('bar'),
242
IO::Path::Win32.new('C:/bar'), '"C:/" with IO::Path::Win32';
243
}
244
+
245
+subtest '.gist escapes backslashes' => {
246
+ plan 2 * @Path-Types;
247
248
+ for @Path-Types -> $Type {
249
+ my $p = $Type.new: 「foo\bar\ber」;
250
+ is $p.gist.perl.EVAL, $p.gist, "relative path ($Type.perl())";
251
252
+ $p = $Type.new: $p.absolute;
253
+ $p.is-absolute; # set internal `is-absolute` attr, if impl uses one
254
+ is $p.gist.perl.EVAL, $p.gist, "absolute path ($Type.perl())";
255
+ }
256
+}
0 commit comments