diff options
| author | Russell Belfer <rb@github.com> | 2012-11-20 14:01:46 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2012-11-27 13:18:28 -0800 |
| commit | e120123e369a036cd40b8f085cebd55463466796 (patch) | |
| tree | 287aa87eeb807edd042dcb08ab5add3149054c7b /tests-clar | |
| parent | 824cb2d5e587f13b596933b991c7d8568422946a (diff) | |
| download | libgit2-e120123e369a036cd40b8f085cebd55463466796.tar.gz | |
API review / update for tree.h
Diffstat (limited to 'tests-clar')
| -rw-r--r-- | tests-clar/object/tree/walk.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests-clar/object/tree/walk.c b/tests-clar/object/tree/walk.c index 58b0bca4c..b7af4924d 100644 --- a/tests-clar/object/tree/walk.c +++ b/tests-clar/object/tree/walk.c @@ -38,11 +38,11 @@ void test_object_tree_walk__0(void) cl_git_pass(git_tree_lookup(&tree, g_repo, &id)); ct = 0; - cl_git_pass(git_tree_walk(tree, treewalk_count_cb, GIT_TREEWALK_PRE, &ct)); + cl_git_pass(git_tree_walk(tree, GIT_TREEWALK_PRE, treewalk_count_cb, &ct)); cl_assert_equal_i(3, ct); ct = 0; - cl_git_pass(git_tree_walk(tree, treewalk_count_cb, GIT_TREEWALK_POST, &ct)); + cl_git_pass(git_tree_walk(tree, GIT_TREEWALK_POST, treewalk_count_cb, &ct)); cl_assert_equal_i(3, ct); git_tree_free(tree); @@ -83,21 +83,21 @@ void test_object_tree_walk__1(void) ct = 0; cl_assert_equal_i( - GIT_EUSER, git_tree_walk(tree, treewalk_stop_cb, GIT_TREEWALK_PRE, &ct)); + GIT_EUSER, git_tree_walk(tree, GIT_TREEWALK_PRE, treewalk_stop_cb, &ct)); cl_assert_equal_i(2, ct); ct = 0; cl_assert_equal_i( - GIT_EUSER, git_tree_walk(tree, treewalk_stop_cb, GIT_TREEWALK_POST, &ct)); + GIT_EUSER, git_tree_walk(tree, GIT_TREEWALK_POST, treewalk_stop_cb, &ct)); cl_assert_equal_i(2, ct); cl_assert_equal_i( GIT_EUSER, git_tree_walk( - tree, treewalk_stop_immediately_cb, GIT_TREEWALK_PRE, NULL)); + tree, GIT_TREEWALK_PRE, treewalk_stop_immediately_cb, NULL)); cl_assert_equal_i( GIT_EUSER, git_tree_walk( - tree, treewalk_stop_immediately_cb, GIT_TREEWALK_POST, NULL)); + tree, GIT_TREEWALK_POST, treewalk_stop_immediately_cb, NULL)); git_tree_free(tree); } |
