--- tai_test.c 2002/04/18 09:10:45 1.1
+++ tai_test.c 2002/05/01 18:48:34 1.2
@@ -36,6 +36,18 @@
#include "ts.h"
#include "tai.h"
+TS_TEST(test_calendar)
+{
+ tai_t *tai;
+ char out[1024];
+
+ ts_test_check(TS_CTX, "calendar calculations");
+ tai_create(&tai);
+ tai_import(tai, TAI_TYPE_UNIX);
+ tai_format(tai, out, sizeof(out), "%a %Y-%m-%d %H:%M:%S %z");
+ fprintf(stdout, "\n<%s>\n", out);
+ tai_destroy(tai);
+}
TS_TEST(test_object)
{
tai_t *tm;
@@ -127,6 +139,7 @@
int n;
ts = ts_suite_new("OSSP tai (Time Handling)");
+ ts_suite_test(ts, test_calendar, "calendar calculations");
ts_suite_test(ts, test_object, "object handling");
ts_suite_test(ts, test_importexport, "time import/export");
ts_suite_test(ts, test_parsing, "time parsing");
|