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.
2 parents d285ab0 + 839b639 commit 2e7b6afCopy full SHA for 2e7b6af
t/t9700/test.pl
@@ -17,6 +17,12 @@ BEGIN
17
use Cwd;
18
use File::Basename;
19
20
+sub adjust_dirsep {
21
+ my $path = shift;
22
+ $path =~ s{\\}{/}g;
23
+ return $path;
24
+}
25
+
26
BEGIN { use_ok('Git') }
27
28
# set up
@@ -33,7 +39,7 @@ BEGIN
33
39
is($r->config_int("test.nonexistent"), undef, "config_int: nonexistent");
34
40
ok($r->config_bool("test.booltrue"), "config_bool: true");
35
41
ok(!$r->config_bool("test.boolfalse"), "config_bool: false");
36
-is($r->config_path("test.path") =~ s/\\/\//gr, $r->config("test.pathexpanded"),
42
+is(adjust_dirsep($r->config_path("test.path")), $r->config("test.pathexpanded"),
37
43
"config_path: ~/foo expansion");
38
44
is_deeply([$r->config_path("test.pathmulti")], ["foo", "bar"],
45
"config_path: multiple values");
0 commit comments