summaryrefslogtreecommitdiff
path: root/tests/t15-config.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-04-19 16:34:22 +0200
committerCarlos Martín Nieto <cmn@elego.de>2011-04-19 16:34:22 +0200
commita99264bff6bc4a16c335a09dab1b6c6c9a763a10 (patch)
tree1d9b03b187325bc470df1c0627d9015151841a78 /tests/t15-config.c
parent53345e1f1fedf63f8d21b5c2959ae6bca3dabde1 (diff)
downloadlibgit2-a99264bff6bc4a16c335a09dab1b6c6c9a763a10.tar.gz
config: allow uppercase number suffixes
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'tests/t15-config.c')
-rw-r--r--tests/t15-config.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/t15-config.c b/tests/t15-config.c
index 1cf4b418f..8e0d3215c 100644
--- a/tests/t15-config.c
+++ b/tests/t15-config.c
@@ -142,12 +142,21 @@ BEGIN_TEST(config5, "test number suffixes")
must_pass(git_config_get_long(cfg, "number.k", &i));
must_be_true(i == 1 * 1024);
+ must_pass(git_config_get_long(cfg, "number.kk", &i));
+ must_be_true(i == 1 * 1024);
+
must_pass(git_config_get_long(cfg, "number.m", &i));
must_be_true(i == 1 * 1024 * 1024);
+ must_pass(git_config_get_long(cfg, "number.mm", &i));
+ must_be_true(i == 1 * 1024 * 1024);
+
must_pass(git_config_get_long(cfg, "number.g", &i));
must_be_true(i == 1 * 1024 * 1024 * 1024);
+ must_pass(git_config_get_long(cfg, "number.gg", &i));
+ must_be_true(i == 1 * 1024 * 1024 * 1024);
+
git_config_free(cfg);
END_TEST