summaryrefslogtreecommitdiffstats
path: root/test/test_helpers.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-08 14:35:35 +0100
committerwm4 <wm4@nowhere>2019-11-08 20:34:07 +0100
commita6c8b4efa59628a755755c510aa9ee6db2728fb9 (patch)
tree2a5af32fad4748cae5504462ccb855682d950a1d /test/test_helpers.c
parent98b38b04c9f771562cdf262c6fa49734a318f5ce (diff)
downloadmpv-a6c8b4efa59628a755755c510aa9ee6db2728fb9.tar.bz2
mpv-a6c8b4efa59628a755755c510aa9ee6db2728fb9.tar.xz
test: merge test_helpers.c and index.c
No need to keep them separate. Originally I thought index.c was only going to contain the list of tests, but that didn't happen.
Diffstat (limited to 'test/test_helpers.c')
-rw-r--r--test/test_helpers.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/test/test_helpers.c b/test/test_helpers.c
deleted file mode 100644
index 187ff73c61..0000000000
--- a/test/test_helpers.c
+++ /dev/null
@@ -1,29 +0,0 @@
-#include <inttypes.h>
-
-#include "test_helpers.h"
-
-void assert_int_equal_impl(const char *file, int line, int64_t a, int64_t b)
-{
- if (a != b) {
- printf("%s:%d: %"PRId64" != %"PRId64"\n", file, line, a, b);
- abort();
- }
-}
-
-void assert_string_equal_impl(const char *file, int line,
- const char *a, const char *b)
-{
- if (strcmp(a, b) != 0) {
- printf("%s:%d: '%s' != '%s'\n", file, line, a, b);
- abort();
- }
-}
-
-void assert_float_equal_impl(const char *file, int line,
- double a, double b, double tolerance)
-{
- if (fabs(a - b) > tolerance) {
- printf("%s:%d: %f != %f\n", file, line, a, b);
- abort();
- }
-}