Skip to content

Commit

Permalink
Add missing newlines from print statements
Browse files Browse the repository at this point in the history
These presumably always passed so were never printed.

Also include the iteration for easier debugging.
  • Loading branch information
blawrence-ont committed Dec 3, 2024
1 parent 1446117 commit bc29d55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ static int aqrittests(void) {

size_t usedbytes = streamvbyte_decode(compressedbuffer, (uint32_t *)recovdata, length);
if (compsize != usedbytes) {
printf("[streamvbyte_decode] code is buggy");
printf("[streamvbyte_decode] code is buggy i=%i\n", i);
return -1;
}
for (size_t k = 0; k < length * sizeof(uint32_t); ++k) {
if (recovdata[k] != in[k]) {
printf("[streamvbyte_decode] code is buggy");
printf("[streamvbyte_decode] code is buggy i=%i\n", i);
return -1;
}
}
Expand All @@ -236,12 +236,12 @@ static int aqrittests(void) {

usedbytes = streamvbyte_decode_0124(compressedbuffer, (uint32_t *)recovdata, length);
if (compsize != usedbytes) {
printf("[streamvbyte_decode_0124] code is buggy");
printf("[streamvbyte_decode_0124] code is buggy i=%i\n", i);
return -1;
}
for (size_t k = 0; k < length * sizeof(uint32_t); ++k) {
if (recovdata[k] != in[k]) {
printf("[streamvbyte_decode_0124] code is buggy");
printf("[streamvbyte_decode_0124] code is buggy i=%i\n", i);
return -1;
}
}
Expand Down

0 comments on commit bc29d55

Please sign in to comment.