Sha256: 8bc1148b85523f40b722eda74b14e7777edc7a4857b474d3b47d6a7af10edba8
Contents?: true
Size: 478 Bytes
Versions: 2
Compression:
Stored size: 478 Bytes
Contents
#include "clar_libgit2.h" static git_oid id; const char *str_oid = "ae90f12eea699729ed24555e40b9fd669da12a12"; void test_core_oid__initialize(void) { cl_git_pass(git_oid_fromstr(&id, str_oid)); } void test_core_oid__streq(void) { cl_assert(git_oid_streq(&id, str_oid) == 0); cl_assert(git_oid_streq(&id, "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef") == -1); cl_assert(git_oid_streq(&id, "deadbeef") == -1); cl_assert(git_oid_streq(&id, "I'm not an oid.... :)") == -1); }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rugged-0.17.0b2 | ext/rugged/vendor/libgit2-dist/tests-clar/core/oid.c |
rugged-0.17.0b1 | ext/rugged/vendor/libgit2-dist/tests-clar/core/oid.c |