summaryrefslogtreecommitdiff
path: root/source/tests/lower_bound.test.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/tests/lower_bound.test.c')
-rw-r--r--source/tests/lower_bound.test.c78
1 files changed, 39 insertions, 39 deletions
diff --git a/source/tests/lower_bound.test.c b/source/tests/lower_bound.test.c
index 3b62325..56ec816 100644
--- a/source/tests/lower_bound.test.c
+++ b/source/tests/lower_bound.test.c
@@ -8,7 +8,7 @@ static int kit_less_int(int left, int right) {
return left < right;
}
-static int kit_less_int_ref(int const *left, int const *right) {
+static int kit_less_int_ref(int *left, int *right) {
return *left < *right;
}
@@ -21,8 +21,8 @@ TEST("lower bound empty") {
}
TEST("lower bound single left") {
- int const v[1] = { 42 };
- AR(int) ref = { .size = 1, .values = v };
+ int v[1] = { 42 };
+ AR(int) ref = { .size = 1, .values = v };
ptrdiff_t index;
LOWER_BOUND(index, ref, 42, kit_less_int);
@@ -30,8 +30,8 @@ TEST("lower bound single left") {
}
TEST("lower bound single right") {
- int const v[1] = { 42 };
- AR(int) ref = { .size = 1, .values = v };
+ int v[1] = { 42 };
+ AR(int) ref = { .size = 1, .values = v };
ptrdiff_t index;
LOWER_BOUND(index, ref, 43, kit_less_int);
@@ -39,8 +39,8 @@ TEST("lower bound single right") {
}
TEST("lower bound first of four") {
- int const v[4] = { 1, 2, 3, 4 };
- AR(int) ref = { .size = 4, .values = v };
+ int v[4] = { 1, 2, 3, 4 };
+ AR(int) ref = { .size = 4, .values = v };
ptrdiff_t index;
LOWER_BOUND(index, ref, 1, kit_less_int);
@@ -48,8 +48,8 @@ TEST("lower bound first of four") {
}
TEST("lower bound second of four") {
- int const v[4] = { 1, 2, 3, 4 };
- AR(int) ref = { .size = 4, .values = v };
+ int v[4] = { 1, 2, 3, 4 };
+ AR(int) ref = { .size = 4, .values = v };
ptrdiff_t index;
LOWER_BOUND(index, ref, 2, kit_less_int);
@@ -57,8 +57,8 @@ TEST("lower bound second of four") {
}
TEST("lower bound third of four") {
- int const v[4] = { 1, 2, 3, 4 };
- AR(int) ref = { .size = 4, .values = v };
+ int v[4] = { 1, 2, 3, 4 };
+ AR(int) ref = { .size = 4, .values = v };
ptrdiff_t index;
LOWER_BOUND(index, ref, 3, kit_less_int);
@@ -66,8 +66,8 @@ TEST("lower bound third of four") {
}
TEST("lower bound forth of four") {
- int const v[4] = { 1, 2, 3, 4 };
- AR(int) ref = { .size = 4, .values = v };
+ int v[4] = { 1, 2, 3, 4 };
+ AR(int) ref = { .size = 4, .values = v };
ptrdiff_t index;
LOWER_BOUND(index, ref, 4, kit_less_int);
@@ -75,8 +75,8 @@ TEST("lower bound forth of four") {
}
TEST("lower bound fifth of four") {
- int const v[4] = { 1, 2, 3, 4 };
- AR(int) ref = { .size = 4, .values = v };
+ int v[4] = { 1, 2, 3, 4 };
+ AR(int) ref = { .size = 4, .values = v };
ptrdiff_t index;
LOWER_BOUND(index, ref, 5, kit_less_int);
@@ -84,8 +84,8 @@ TEST("lower bound fifth of four") {
}
TEST("lower bound first of five") {
- int const v[5] = { 1, 2, 3, 4, 5 };
- AR(int) ref = { .size = 5, .values = v };
+ int v[5] = { 1, 2, 3, 4, 5 };
+ AR(int) ref = { .size = 5, .values = v };
ptrdiff_t index;
LOWER_BOUND(index, ref, 1, kit_less_int);
@@ -93,8 +93,8 @@ TEST("lower bound first of five") {
}
TEST("lower bound second of five") {
- int const v[5] = { 1, 2, 3, 4, 5 };
- AR(int) ref = { .size = 5, .values = v };
+ int v[5] = { 1, 2, 3, 4, 5 };
+ AR(int) ref = { .size = 5, .values = v };
ptrdiff_t index;
LOWER_BOUND(index, ref, 2, kit_less_int);
@@ -102,8 +102,8 @@ TEST("lower bound second of five") {
}
TEST("lower bound third of five") {
- int const v[5] = { 1, 2, 3, 4, 5 };
- AR(int) ref = { .size = 5, .values = v };
+ int v[5] = { 1, 2, 3, 4, 5 };
+ AR(int) ref = { .size = 5, .values = v };
ptrdiff_t index;
LOWER_BOUND(index, ref, 3, kit_less_int);
@@ -111,8 +111,8 @@ TEST("lower bound third of five") {
}
TEST("lower bound forth of five") {
- int const v[5] = { 1, 2, 3, 4, 5 };
- AR(int) ref = { .size = 5, .values = v };
+ int v[5] = { 1, 2, 3, 4, 5 };
+ AR(int) ref = { .size = 5, .values = v };
ptrdiff_t index;
LOWER_BOUND(index, ref, 4, kit_less_int);
@@ -120,8 +120,8 @@ TEST("lower bound forth of five") {
}
TEST("lower bound fifth of five") {
- int const v[5] = { 1, 2, 3, 4, 5 };
- AR(int) ref = { .size = 5, .values = v };
+ int v[5] = { 1, 2, 3, 4, 5 };
+ AR(int) ref = { .size = 5, .values = v };
ptrdiff_t index;
LOWER_BOUND(index, ref, 5, kit_less_int);
@@ -129,8 +129,8 @@ TEST("lower bound fifth of five") {
}
TEST("lower bound sixth of five") {
- int const v[5] = { 1, 2, 3, 4, 5 };
- AR(int) ref = { .size = 5, .values = v };
+ int v[5] = { 1, 2, 3, 4, 5 };
+ AR(int) ref = { .size = 5, .values = v };
ptrdiff_t index;
LOWER_BOUND(index, ref, 6, kit_less_int);
@@ -138,9 +138,9 @@ TEST("lower bound sixth of five") {
}
TEST("lower bound ref first of four") {
- int const v[4] = { 1, 2, 3, 4 };
- int const value = 1;
- AR(int) ref = { .size = 4, .values = v };
+ int v[4] = { 1, 2, 3, 4 };
+ int value = 1;
+ AR(int) ref = { .size = 4, .values = v };
ptrdiff_t index;
LOWER_BOUND_REF(index, ref, &value, kit_less_int_ref);
@@ -148,9 +148,9 @@ TEST("lower bound ref first of four") {
}
TEST("lower bound ref second of four") {
- int const v[4] = { 1, 2, 3, 4 };
- int const value = 2;
- AR(int) ref = { .size = 4, .values = v };
+ int v[4] = { 1, 2, 3, 4 };
+ int value = 2;
+ AR(int) ref = { .size = 4, .values = v };
ptrdiff_t index;
LOWER_BOUND_REF(index, ref, &value, kit_less_int_ref);
@@ -158,9 +158,9 @@ TEST("lower bound ref second of four") {
}
TEST("lower bound ref fifth of five") {
- int const v[5] = { 1, 2, 3, 4, 5 };
- int const value = 5;
- AR(int) ref = { .size = 5, .values = v };
+ int v[5] = { 1, 2, 3, 4, 5 };
+ int value = 5;
+ AR(int) ref = { .size = 5, .values = v };
ptrdiff_t index;
LOWER_BOUND_REF(index, ref, &value, kit_less_int_ref);
@@ -168,9 +168,9 @@ TEST("lower bound ref fifth of five") {
}
TEST("lower bound ref sixth of five") {
- int const v[5] = { 1, 2, 3, 4, 5 };
- int const value = 6;
- AR(int) ref = { .size = 5, .values = v };
+ int v[5] = { 1, 2, 3, 4, 5 };
+ int value = 6;
+ AR(int) ref = { .size = 5, .values = v };
ptrdiff_t index;
LOWER_BOUND_REF(index, ref, &value, kit_less_int_ref);