summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/File-Glob/t/basic.t11
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/File-Glob/t/basic.t b/ext/File-Glob/t/basic.t
index bdf0d9497c..f7a2f1f220 100644
--- a/ext/File-Glob/t/basic.t
+++ b/ext/File-Glob/t/basic.t
@@ -10,7 +10,7 @@ BEGIN {
}
}
use strict;
-use Test::More tests => 23;
+use Test::More tests => 22;
BEGIN {use_ok('File::Glob', ':glob')};
use Cwd ();
@@ -237,8 +237,11 @@ is(&File::Glob::GLOB_ERROR, 0, "Successfuly ignored unsupported flag");
package frimpy; # get away from the glob override, so we can test csh_glob,
use Test::More; # which is perl's default
+# In case of PERL_EXTERNAL_GLOB:
+use subs 'glob';
+BEGIN { *glob = \&File::Glob::csh_glob }
+
is +(glob "a'b'")[0], (<a'b' c>)[0], "a'b' with and without spaces";
is +(<a"b">)[0], (<a"b" c>)[0], 'a"b" with and without spaces';
-is <\\*>, '*', 'backslashes without spaces';
-is_deeply [sort <\\* .\\*>], [sort qw<* .*>], 'backslashes with spaces';
-is <\\ >, ' ', 'final escaped space';
+is_deeply [<\\* .\\*>], [<\\*>,<.\\*>], 'backslashes with(out) spaces';
+like <\\ >, qr/^\\? \z/, 'final escaped space';