diff options
author | sanine <sanine.not@pm.me> | 2022-08-28 14:21:42 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-08-28 14:21:42 -0500 |
commit | d232fd1b3add3a93b81fc040d8b7e165590930cf (patch) | |
tree | c57592f11907ae7ca7a13c7cb47ef752efab47b9 /src/test | |
parent | 91726809f9e97d8d4fb7b6c0642234ff96535bdd (diff) |
add channel_get_next_sample()
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/lily-test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/lily-test.c b/src/test/lily-test.c index 2f43a28..a8381d0 100644 --- a/src/test/lily-test.c +++ b/src/test/lily-test.c @@ -209,7 +209,7 @@ void _lily_assert_int_not_equal(const char *name_a, const char *name_b, void _lily_assert_float_equal(const char *name_a, const char *name_b, double a, double b, double epsilon, const char *location) { - lily_assert_msg(abs(a - b) <= epsilon, + lily_assert_msg(abs(a - b) <= epsilon, location, "%s (%f) is not equal to %s (%f) (epsilon: %f)", name_a, a, name_b, b, epsilon); } @@ -218,7 +218,7 @@ void _lily_assert_float_equal(const char *name_a, const char *name_b, void _lily_assert_float_not_equal(const char *name_a, const char *name_b, double a, double b, double epsilon, const char *location) { - lily_assert_msg(abs(a - b) > epsilon, + lily_assert_msg(abs(a - b) > epsilon, location, "%s (%f) is equal to %s (%f) (epsilon: %f)", name_a, a, name_b, b, epsilon); } @@ -227,7 +227,7 @@ void _lily_assert_float_not_equal(const char *name_a, const char *name_b, void _lily_assert_string_equal(const char *name_a, const char *name_b, char *a, char *b, const char *location) { - lily_assert_msg(strcmp(a, b) == 0, + lily_assert_msg(strcmp(a, b) == 0, location, "%s ('%s') is not equal to %s ('%s')", name_a, a, name_b, b); } @@ -236,7 +236,7 @@ void _lily_assert_string_equal(const char *name_a, const char *name_b, void _lily_assert_string_not_equal(const char *name_a, const char *name_b, char *a, char *b, const char *location) { - lily_assert_msg(strcmp(a, b) != 0, + lily_assert_msg(strcmp(a, b) != 0, location, "%s ('%s') is equal to %s", name_a, a, name_b); } @@ -245,7 +245,7 @@ void _lily_assert_string_not_equal(const char *name_a, const char *name_b, void _lily_assert_memory_equal(const char *name_a, const char *name_b, void *a, void *b, size_t size, const char *location) { - lily_assert_msg(memcmp(a, b, size) == 0, + lily_assert_msg(memcmp(a, b, size) == 0, location, "%s and %s contain different data", name_a, name_b); } @@ -253,7 +253,7 @@ void _lily_assert_memory_equal(const char *name_a, const char *name_b, void _lily_assert_memory_not_equal(const char *name_a, const char *name_b, void *a, void *b, size_t size, const char *location) { - lily_assert_msg(memcmp(a, b, size) == 0, + lily_assert_msg(memcmp(a, b, size) == 0, location, "%s contains the same data s %s", name_a, name_b); } |