Commit 8e9a3d421755100891402670e5a709031205e664

nulltoken 2011-03-30T21:46:19

Enforce the testing of the correct creation of a tag

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/tests/t08-tag.c b/tests/t08-tag.c
index 09d1310..d1847f3 100644
--- a/tests/t08-tag.c
+++ b/tests/t08-tag.c
@@ -94,6 +94,7 @@ BEGIN_TEST(write0, "write a tag to the repository and read it again")
 	git_signature_free((git_signature *)tagger);
 
 	must_pass(git_tag_lookup(&tag, repo, &tag_id));
+	must_be_true(git_oid_cmp(git_tag_target_oid(tag), &target_id) == 0);
 
 	/* Check attributes were set correctly */
 	tagger = git_tag_tagger(tag);