aboutsummaryrefslogtreecommitdiffstats
path: root/test/time_test_private.h
diff options
context:
space:
mode:
authorGravatar Gediminas Jakutis <gediminas@varciai.lt> 2017-11-09 16:44:31 +0200
committerGravatar Gediminas Jakutis <gediminas@varciai.lt> 2017-11-09 16:44:31 +0200
commit1d02d81278becb538ba2fdee113c8c90ad083f2e (patch)
tree6d975dda5f233b7261062ce423891e5d37f7ae0d /test/time_test_private.h
parent218082e6bf725279bf2231c4290058cba51a290c (diff)
downloadlibrin-1d02d81278becb538ba2fdee113c8c90ad083f2e.tar.gz
librin-1d02d81278becb538ba2fdee113c8c90ad083f2e.tar.bz2
librin-1d02d81278becb538ba2fdee113c8c90ad083f2e.zip
tests: add tests for time functions.
Diffstat (limited to 'test/time_test_private.h')
-rw-r--r--test/time_test_private.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/time_test_private.h b/test/time_test_private.h
new file mode 100644
index 0000000..8ccd192
--- /dev/null
+++ b/test/time_test_private.h
@@ -0,0 +1,36 @@
+/*
+ * The Rin Library – library "conformance" tests
+ *
+ * Copyright (C) 2017 Gediminas Jakutis
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; version 2.1
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef LIBRIN_TIME_TEST_INCLUDED
+#define LIBRIN_TIME_TEST_INCLUDED
+
+#include "rin/time.h"
+
+static int rin_time_add_test(void);
+static int rin_time_sub_test(void);
+static int rin_time_normalize_test(void);
+static int rin_time_cmpless_test(void);
+static int rin_time_cmpmore_test(void);
+static int rin_time_cmplessequal_test(void);
+static int rin_time_cmpmoreequal_test(void);
+static int rin_time_cmpequal_test(void);
+static int rin_time_cmpnonequal_test(void);
+
+#endif /* LIBRIN_TIME_TEST_INCLUDED */