]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - t/20-each.t
Use @ as the escape character. ^ is actually an escape char of cmd.exe
[perl/modules/rgit.git] / t / 20-each.t
index 23692aa1d67c0cf84214fdaccfa558509765c686..9332cb9cd79635b869f00e9a730c58dacb0641c0 100644 (file)
@@ -89,7 +89,7 @@ is(grep({ ref eq 'ARRAY' } @expected), 3, 'all of them are array references');
              @$_,
              map({ catdir($tmpdir, $_) } @{$_}[1 .. 3]),
              $tmpdir,
-             '^n', '^x'
+             '@n', '@x'
             ], @expected;
 
 sub try {
@@ -99,7 +99,7 @@ sub try {
   git    => abs_path('t/bin/git'),
   root   => $tmpdir,
   cmd    => $cmd,
-  args   => [ abs_path($filename), $cmd, qw/^n ^g ^w ^b ^G ^W ^B ^R ^^n ^x/ ],
+  args   => [ abs_path($filename), $cmd, qw/@n @g @w @b @G @W @B @R @@n @x/ ],
   policy => $policy,
  );
  isnt($ar, undef, "each $cmd has a defined object");