aboutsummaryrefslogtreecommitdiff
path: root/t/t9700
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2011-10-21 20:42:44 +0200
committerJunio C Hamano <gitster@pobox.com>2011-10-21 14:34:08 -0700
commitcb9c9df37acf5ff8a452b5fe2eaf7ad6ff8bfb72 (patch)
treebd5bd5a951291cab6ce29b5f68baa370cb881e02 /t/t9700
parent6942a3d796ce7a824bd9a69e88cf0a9578225bb2 (diff)
downloadgit-cb9c9df37acf5ff8a452b5fe2eaf7ad6ff8bfb72.tar.gz
git-cb9c9df37acf5ff8a452b5fe2eaf7ad6ff8bfb72.tar.xz
Add simple test for Git::config_path() in t/t9700-perl-git.sh
Tests "~/foo" path expansion and multiple values. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9700')
-rwxr-xr-xt/t9700/test.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t9700/test.pl b/t/t9700/test.pl
index 13ba96e21..3b9b48408 100755
--- a/t/t9700/test.pl
+++ b/t/t9700/test.pl
@@ -33,6 +33,10 @@ is($r->config_int("test.int"), 2048, "config_int: integer");
is($r->config_int("test.nonexistent"), undef, "config_int: nonexistent");
ok($r->config_bool("test.booltrue"), "config_bool: true");
ok(!$r->config_bool("test.boolfalse"), "config_bool: false");
+is($r->config_path("test.path"), $r->config("test.pathexpanded"),
+ "config_path: ~/foo expansion");
+is_deeply([$r->config_path("test.pathmulti")], ["foo", "bar"],
+ "config_path: multiple values");
our $ansi_green = "\x1b[32m";
is($r->get_color("color.test.slot1", "red"), $ansi_green, "get_color");
# Cannot test $r->get_colorbool("color.foo")) because we do not