Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a failing test for git_oid_fromstr

  • Loading branch information...
commit 388bed0b20040bebdb843435471bccbaf479969d 1 parent a74b651
@leto leto authored
Showing with 7 additions and 1 deletion.
  1. +1 −1  src/git2.nci
  2. +6 −0 t/winxed/001_load.t
View
2  src/git2.nci
@@ -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
6 t/winxed/001_load.t
@@ -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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.