summaryrefslogtreecommitdiff
path: root/tests-clar/object
diff options
context:
space:
mode:
authorSascha Cunz <Sascha@BabbelBox.org>2012-09-21 00:57:21 +0200
committerSascha Cunz <Sascha@BabbelBox.org>2012-09-23 01:02:07 +0200
commit7604ddbf701b586b6f6160807cf32fca28398df1 (patch)
treea354fa3aad9a60c1563c726120ef093aafbfda28 /tests-clar/object
parente800bbe80a37468234e4b7412da8e69dff17b5a5 (diff)
downloadlibgit2-7604ddbf701b586b6f6160807cf32fca28398df1.tar.gz
Tests: Add 3 tags to resources/testrepo.
Adjusts refs::list test (including the comments) Adjusts objects::tags::list test
Diffstat (limited to 'tests-clar/object')
-rw-r--r--tests-clar/object/tag/list.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests-clar/object/tag/list.c b/tests-clar/object/tag/list.c
index 75feb55e1..f57a689d5 100644
--- a/tests-clar/object/tag/list.c
+++ b/tests-clar/object/tag/list.c
@@ -4,7 +4,7 @@
static git_repository *g_repo;
-#define MAX_USED_TAGS 3
+#define MAX_USED_TAGS 6
struct pattern_match_t
{
@@ -47,7 +47,7 @@ static void ensure_tag_pattern_match(git_repository *repo,
}
}
}
- cl_assert(sucessfully_found == data->expected_matches);
+ cl_assert_equal_i((int)sucessfully_found, (int)data->expected_matches);
exit:
git_strarray_free(&tag_list);
@@ -72,13 +72,13 @@ void test_object_tag_list__list_all(void)
cl_git_pass(git_tag_list(&tag_list, g_repo));
- cl_assert(tag_list.count == 3);
+ cl_assert_equal_i((int)tag_list.count, 6);
git_strarray_free(&tag_list);
}
static const struct pattern_match_t matches[] = {
- { "", 3, { "e90810b", "point_to_blob", "test" } },
+ { "", 6, { "e90810b", "point_to_blob", "test", "packed-tag", "foo/bar", "foo/foo/bar" } },
{ "t*", 1, { "test" } },
{ "*b", 2, { "e90810b", "point_to_blob" } },
{ "e", 0 },