File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,21 @@ void test_config_read__symbol_headers(void)
209209{
210210 git_config * cfg ;
211211 cl_git_pass (git_config_open_ondisk (& cfg , cl_fixture ("config/config20" )));
212+ cl_git_pass (git_config_get_string_buf (& buf , cfg , "valid.[subsection].something" ));
213+ cl_assert_equal_s ("a" , buf .ptr );
214+ git_buf_dispose (& buf );
215+ cl_git_pass (git_config_get_string_buf (& buf , cfg , "sec.[subsec]/child.parent" ));
216+ cl_assert_equal_s ("grand" , buf .ptr );
217+ git_buf_dispose (& buf );
218+ cl_git_pass (git_config_get_string_buf (& buf , cfg , "sec2.[subsec2]/child2.type" ));
219+ cl_assert_equal_s ("dvcs" , buf .ptr );
220+ git_buf_dispose (& buf );
221+ cl_git_pass (git_config_get_string_buf (& buf , cfg , "sec3.escape\"quote.vcs" ));
222+ cl_assert_equal_s ("git" , buf .ptr );
223+ git_buf_dispose (& buf );
224+ cl_git_pass (git_config_get_string_buf (& buf , cfg , "sec4.escaping\\slash.lib" ));
225+ cl_assert_equal_s ("git2" , buf .ptr );
226+ git_buf_dispose (& buf );
212227 git_config_free (cfg );
213228}
214229
You can’t perform that action at this time.
0 commit comments