From 47f271b51f6855ee531a06a1e582e78a66a763b0 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Mon, 8 Aug 2022 03:30:43 +0400 Subject: Refactor --- source/test/unittests/lower_bound.test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/test') diff --git a/source/test/unittests/lower_bound.test.c b/source/test/unittests/lower_bound.test.c index 225c6ba..44145f8 100644 --- a/source/test/unittests/lower_bound.test.c +++ b/source/test/unittests/lower_bound.test.c @@ -143,7 +143,7 @@ TEST("lower bound ref first of four") { AR(ref, int) = { .size = 4, .values = v }; ptrdiff_t index; - KIT_LOWER_BOUND_REF(index, ref, value, kit_less_int_ref); + KIT_LOWER_BOUND_REF(index, ref, &value, kit_less_int_ref); REQUIRE(index == 0); } @@ -153,7 +153,7 @@ TEST("lower bound ref second of four") { AR(ref, int) = { .size = 4, .values = v }; ptrdiff_t index; - KIT_LOWER_BOUND_REF(index, ref, value, kit_less_int_ref); + KIT_LOWER_BOUND_REF(index, ref, &value, kit_less_int_ref); REQUIRE(index == 1); } @@ -163,7 +163,7 @@ TEST("lower bound ref fifth of five") { AR(ref, int) = { .size = 5, .values = v }; ptrdiff_t index; - KIT_LOWER_BOUND_REF(index, ref, value, kit_less_int_ref); + KIT_LOWER_BOUND_REF(index, ref, &value, kit_less_int_ref); REQUIRE(index == 4); } @@ -173,6 +173,6 @@ TEST("lower bound ref sixth of five") { AR(ref, int) = { .size = 5, .values = v }; ptrdiff_t index; - KIT_LOWER_BOUND_REF(index, ref, value, kit_less_int_ref); + KIT_LOWER_BOUND_REF(index, ref, &value, kit_less_int_ref); REQUIRE(index == 5); } -- cgit v1.2.3