summaryrefslogtreecommitdiff
path: root/tests/vector.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vector.c')
-rw-r--r--tests/vector.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/vector.c b/tests/vector.c
index c93e793..7fae776 100644
--- a/tests/vector.c
+++ b/tests/vector.c
@@ -325,7 +325,18 @@ test_next_size(void) {
{
testing("same as multiplication");
- // FIXME:
+
+ const struct Vector v = {
+ .value_size = 12U,
+ };
+
+ size_t out1;
+ size_t out2;
+ assert(next_size(&v, 3U, &out1) == 0);
+ assert( mul_size(v.value_size, 3U, &out2) == 0);
+ assert(out1 == 36U);
+ assert(out1 == out2);
+
test_ok();
}
}