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
0d52cb4a
Commit
0d52cb4a
authored
Jan 24, 2013
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opts: Some basic tests
parent
a0f777c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
tests-clar/core/opts.c
+18
-0
No files found.
tests-clar/core/opts.c
0 → 100644
View file @
0d52cb4a
#include "clar_libgit2.h"
void
test_core_opts__readwrite
(
void
)
{
size_t
old_val
=
0
;
size_t
new_val
=
0
;
git_libgit2_opts
(
GIT_OPT_GET_MWINDOW_SIZE
,
&
old_val
);
git_libgit2_opts
(
GIT_OPT_SET_MWINDOW_SIZE
,
(
size_t
)
1234
);
git_libgit2_opts
(
GIT_OPT_GET_MWINDOW_SIZE
,
&
new_val
);
cl_assert
(
new_val
==
1234
);
git_libgit2_opts
(
GIT_OPT_SET_MWINDOW_SIZE
,
old_val
);
git_libgit2_opts
(
GIT_OPT_GET_MWINDOW_SIZE
,
&
new_val
);
cl_assert
(
new_val
==
old_val
);
}
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