Permalink
Browse files

Add a failing test for git_oid_fromstr

  • Loading branch information...
1 parent a74b651 commit 388bed0b20040bebdb843435471bccbaf479969d @leto leto committed Nov 15, 2011
Showing with 7 additions and 1 deletion.
  1. +1 −1 src/git2.nci
  2. +6 −0 t/winxed/001_load.t
View
@@ -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
View
@@ -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);
}
}

0 comments on commit 388bed0

Please sign in to comment.