summaryrefslogtreecommitdiff
path: root/tests/vector.c
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-05-24 20:45:54 -0300
committerEuAndreh <eu@euandre.org>2024-05-24 20:59:27 -0300
commit48939391bdb9dd53ac2e664568e5991a9bc47543 (patch)
treec89d66e310e10e6de95f1fc45eb97a1e6c283c7b /tests/vector.c
parentsrc/vector.h: Add implementation and tests for vector_contains() (diff)
downloadpindaiba-48939391bdb9dd53ac2e664568e5991a9bc47543.tar.gz
pindaiba-48939391bdb9dd53ac2e664568e5991a9bc47543.tar.xz
Remove all remaining calls to logerr() that included a trailing newline
Diffstat (limited to 'tests/vector.c')
-rw-r--r--tests/vector.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/vector.c b/tests/vector.c
index 4d27c7f..118651b 100644
--- a/tests/vector.c
+++ b/tests/vector.c
@@ -242,7 +242,7 @@ test_vector_nth(void) {
for (unsigned int i = 0; i < values_len; i++) {
if (vector_push_back(v, &values[i])) {
- logerr("vector_push_back(v, values[%d])", i);
+ logerr("vector_push_back()");
goto out;
}
}
@@ -271,7 +271,7 @@ test_vector_nth(void) {
for (unsigned int i = 0; i < values_len; i++) {
if (vector_push_back(v, &values[i])) {
- logerr("vector_push_back(v, values[%d])", i);
+ logerr("vector_push_back()");
goto out;
}
}
@@ -338,7 +338,7 @@ test_vector_push_back(void) {
for (unsigned int i = 0; i < v->capacity; i++) {
if (vector_push_back(v, &data)) {
- logerr("vector_push_back(): i = %d", i);
+ logerr("vector_push_back()");
goto out;
}
}
@@ -349,7 +349,7 @@ test_vector_push_back(void) {
// we grow the vector here
if (vector_push_back(v, &data)) {
- logerr("vector_push_vack()");
+ logerr("vector_push_back()");
goto out;
}
const size_t new_capacity = capacity * v->multiplier;