Add test config parsing

This tests parsing a multiline string containing multiple quoted comment
chars. See #6019
This commit is contained in:
Basile Henry
2021-09-09 21:51:52 +02:00
parent f1b89a201e
commit 5eab4dafbe
2 changed files with 12 additions and 0 deletions

View File

@@ -213,6 +213,13 @@ void test_config_read__symbol_headers(void)
git_config_free(cfg);
}
void test_config_read__multiline_multiple_quoted_comment_chars(void)
{
git_config *cfg;
cl_git_pass(git_config_open_ondisk(&cfg, cl_fixture("config/config21")));
git_config_free(cfg);
}
void test_config_read__header_in_last_line(void)
{
git_config *cfg;

5
tests/resources/config/config21 vendored Normal file
View File

@@ -0,0 +1,5 @@
[alias]
m = '\
";" \
";" \
'