]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
test functions for str2host
authorMiek Gieben <miekg@NLnetLabs.nl>
Wed, 22 Dec 2004 12:41:53 +0000 (12:41 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Wed, 22 Dec 2004 12:41:53 +0000 (12:41 +0000)
run-test1.c

index e93cc3e16f47ea75c785f1809c1c306e919de549..9bda66bc9e642dcc85903b6ac16c6dd989477a75 100644 (file)
@@ -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;
 }