Add unit tests for index manipulation
commitfb20a5a4b6185d9188d82c874db3d9729ef31f3b
authorVicent Marti <tanoku@gmail.com>
Mon, 19 Jul 2010 13:35:52 +0000 (19 15:35 +0200)
committerVicent Marti <tanoku@gmail.com>
Sun, 25 Jul 2010 23:37:02 +0000 (26 01:37 +0200)
tree7ce8cf840e9a4d86680c0c13788fb744636658f8
parent0129895fa52dfb06cfe4f1f456d57d8e16453686
Add unit tests for index manipulation

Three new unit tests, t06XX files have been added.

t0601-read: tests for loading index files from disk,
for creating in-memory indexes and for accessing
index entries.
t0602-write: tests for writing index files back to disk
t0603-sort: tests for properly sorting the entries array of an index

Two test indexes have been added in 'tests/resources/':

test/resources/index: a sample index from a libgit2 repository

test/resources/gitgit.index: a sample index from a git.git
repository (includes TREE extension data)

Signed-off-by: Vicent Marti <tanoku@gmail.com>
tests/t0601-read.c [new file with mode: 0644]
tests/t0602-write.c [new file with mode: 0644]
tests/t0603-sort.c [new file with mode: 0644]