Commit 0d52cb4a by Vicent Marti

opts: Some basic tests

parent a0f777c8
#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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment