summaryrefslogtreecommitdiffstats
path: root/test/test_helpers.h
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.h
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.h')
-rw-r--r--test/test_helpers.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/test_helpers.h b/test/test_helpers.h
deleted file mode 100644
index 6ca3cd99b3..0000000000
--- a/test/test_helpers.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef MP_TESTS_H
-#define MP_TESTS_H
-
-#include <math.h>
-#include <float.h>
-
-#include "common/common.h"
-
-#define assert_true(x) assert(x)
-#define assert_false(x) assert(!(x))
-#define assert_int_equal(a, b) \
- assert_int_equal_impl(__FILE__, __LINE__, (a), (b))
-#define assert_string_equal(a, b) \
- assert_string_equal_impl(__FILE__, __LINE__, (a), (b))
-#define assert_float_equal(a, b, tolerance) \
- assert_float_equal_impl(__FILE__, __LINE__, (a), (b), (tolerance))
-
-void assert_int_equal_impl(const char *file, int line, int64_t a, int64_t b);
-void assert_string_equal_impl(const char *file, int line,
- const char *a, const char *b);
-void assert_float_equal_impl(const char *file, int line,
- double a, double b, double tolerance);
-
-#endif