gitweb: Fix git_patchset_body not closing <div class="patch">
[gitweb.git] / t / t1300-repo-config.sh
index e48a4ecdcf7129da1431928bdb942eae8c3e6515..60acdd368bfcb6ccb4698f6fd7533dd25befd9b0 100755 (executable)
@@ -391,5 +391,32 @@ EOF
 
 test_expect_success "rename succeeded" "diff -u expect .git/config"
 
+test_expect_success numbers '
+
+       git-repo-config kilo.gram 1k &&
+       git-repo-config mega.ton 1m &&
+       k=$(git-repo-config --int --get kilo.gram) &&
+       test z1024 = "z$k" &&
+       m=$(git-repo-config --int --get mega.ton) &&
+       test z1048576 = "z$m"
+'
+
+rm .git/config
+
+git-repo-config quote.leading " test"
+git-repo-config quote.ending "test "
+git-repo-config quote.semicolon "test;test"
+git-repo-config quote.hash "test#test"
+
+cat > expect << EOF
+[quote]
+       leading = " test"
+       ending = "test "
+       semicolon = "test;test"
+       hash = "test#test"
+EOF
+
+test_expect_success 'quoting' 'cmp .git/config expect'
+
 test_done