Skip to content

Commit

Permalink
[test-libc] refs fibercrypto#5 FInalized suite test TestParseDate
Browse files Browse the repository at this point in the history
  • Loading branch information
Maykel Arias Torres committed Mar 27, 2020
1 parent 6f36371 commit b59a03c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cgo/tests/check_util.datetime.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ START_TEST(TestParseDate)
{
printf("Load TestParseDate \n");
GoUint64_ some_date = 1577665665;
GoInt ny, nm, nd, nh, nmin, ns;
GoUint32_ err = FC_util_ParseDate(some_date, &ny, &nm, &nd, &nh, &nmin, &ns);
ck_assert_int_eq(err, FC_OK);
printf("The datetime is %d-%d-%d %d:%d:%d\n", ny, nm, nd, nh, nmin, ns);
}
END_TEST

Expand Down

0 comments on commit b59a03c

Please sign in to comment.