summaryrefslogtreecommitdiff
path: root/source/test
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-08 03:30:43 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-08 03:30:43 +0400
commit47f271b51f6855ee531a06a1e582e78a66a763b0 (patch)
tree68b4581285100fd5b369826d03ecdbd0e9cd85e9 /source/test
parentf8831550861f6c2e5e93d68d098d9945b19cf14c (diff)
downloadkit-47f271b51f6855ee531a06a1e582e78a66a763b0.zip
Refactor
Diffstat (limited to 'source/test')
-rw-r--r--source/test/unittests/lower_bound.test.c8
1 files changed, 4 insertions, 4 deletions
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);
}