Accept an iolist in the revwalk

This commit is contained in:
Carlos Martín Nieto
2013-05-12 15:02:54 +02:00
parent 75c591a089
commit cc8124a6b9
2 changed files with 11 additions and 4 deletions

View File

@@ -26,8 +26,7 @@ count_walk(Walk, Acc) ->
amount_test(Repo) ->
{ok, Walk} = geef_repo:revwalk(Repo),
Id = geef_oid:parse("a4a7dce85cf63874e984719f4fdd239f5145052f"),
ok = geef_revwalk:push(Walk, Id),
ok = geef_revwalk:push(Walk, "a4a7dce85cf63874e984719f4fdd239f5145052f"),
Count = count_walk(Walk, 0),
geef_revwalk:stop(Walk),
[?_assertEqual(6, Count)].