From: Miek Gieben Date: Wed, 22 Dec 2004 12:41:53 +0000 (+0000) Subject: test functions for str2host X-Git-Tag: release-0.50~605 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62077b2e124b141d32d80110405649c474ebfb75;p=thirdparty%2Fldns.git test functions for str2host --- diff --git a/run-test1.c b/run-test1.c index e93cc3e1..9bda66bc 100644 --- a/run-test1.c +++ b/run-test1.c @@ -29,11 +29,13 @@ main(void) { ldns_rdf bla; if (zparser_conv_short(&bla, "15242") != LDNS_STATUS_OK) { - printf("ah man, shit hit the fan\n"); + printf("_short: ah man, shit hit the fan\n"); } - if (zparser_conv_time(&bla, "84600") != LDNS_STATUS_OK) { - printf("ah man, shit hit the fan\n"); + /* %Y%m%d%H%M%S */ + if (zparser_conv_time(&bla, "20041222134100") != LDNS_STATUS_OK) { + printf("_time: ah man, shit hit the fan\n"); } + printf("succes\n"); return 0; }