Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
440a87a1
Commit
440a87a1
authored
Jul 16, 2014
by
Linquize
Committed by
Vicent Marti
Aug 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add unit test to test add section without lf at EOF
parent
190fe072
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
tests/config/write.c
+16
-0
No files found.
tests/config/write.c
View file @
440a87a1
...
...
@@ -229,6 +229,22 @@ void test_config_write__add_value_at_file_with_no_clrf_at_the_end(void)
git_config_free
(
cfg
);
}
void
test_config_write__add_section_at_file_with_no_clrf_at_the_end
(
void
)
{
git_config
*
cfg
;
int
i
;
cl_git_pass
(
git_config_open_ondisk
(
&
cfg
,
"config17"
));
cl_git_pass
(
git_config_set_int32
(
cfg
,
"diff.context"
,
10
));
git_config_free
(
cfg
);
cl_git_pass
(
git_config_open_ondisk
(
&
cfg
,
"config17"
));
cl_git_pass
(
git_config_get_int32
(
&
i
,
cfg
,
"diff.context"
));
cl_assert_equal_i
(
10
,
i
);
git_config_free
(
cfg
);
}
void
test_config_write__add_value_which_needs_quotes
(
void
)
{
git_config
*
cfg
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment