Skip to content

Commit

Permalink
Add a failing test for git_oid_fromstr
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Nov 15, 2011
1 parent a74b651 commit 388bed0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/git2.nci
Expand Up @@ -106,7 +106,7 @@ i git_odb_backend_pack pvvvv # git_odb_backend_pack
i git_oid_ncmp v # git_oid_ncmp
v git_oid_fromraw p # git_oid_fromraw
v git_oid_fmt p # git_oid_fmt
i git_oid_fromstr p # git_oid_fromstr
i git_oid_fromstr pp # git_oid_fromstr
i git_oid_cmp v # git_oid_cmp
p git_oid_allocfmt v # git_oid_allocfmt
i git_oid_fromstrn p # git_oid_fromstrn
Expand Down
6 changes: 6 additions & 0 deletions t/winxed/001_load.t
Expand Up @@ -90,7 +90,13 @@ class Test_git2_repository_open {

function git_oid() {
var git_oid = new Git2.Oid();
using Git2.Raw.git_oid_fromstr;
self.assert.instance_of(git_oid, class Git2.Oid);

var hex = cstring("599955586da1c3ad514f3e65f1081d2012ec862d");
var rc1 = -1;
rc1 = git_oid_fromstr(git_oid.ptr, hex);
self.assert.defined(git_oid);
}

}
Expand Down

0 comments on commit 388bed0

Please sign in to comment.