aboutsummaryrefslogtreecommitdiffstats
path: root/misc-tests.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-31 07:41:27 +0200
committerMattias Andrée <maandree@kth.se>2024-08-31 07:41:27 +0200
commitd1acc40f9361cf5d1f0e92a0a2569b518b29b1cf (patch)
treea0538a97e06b8783f07eeed5cc3d686e3a8a686f /misc-tests.c
parentAdd more tests + m fixes (diff)
downloadlibhashsum-d1acc40f9361cf5d1f0e92a0a2569b518b29b1cf.tar.gz
libhashsum-d1acc40f9361cf5d1f0e92a0a2569b518b29b1cf.tar.bz2
libhashsum-d1acc40f9361cf5d1f0e92a0a2569b518b29b1cf.tar.xz
Add support for extended hash + add support for output hash to custom buffer when supported
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'misc-tests.c')
-rw-r--r--misc-tests.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc-tests.c b/misc-tests.c
index 0144916..4eca0a6 100644
--- a/misc-tests.c
+++ b/misc-tests.c
@@ -7,7 +7,7 @@
if ((ASSERTION))\
break;\
fprintf(stderr, "assertion `%s` at line %i failed\n", #ASSERTION, __LINE__);\
- exit(1);\
+ exit(2);\
} while (0)
@@ -23,6 +23,7 @@ eq(struct libhashsum_hasher *a, struct libhashsum_hasher *b)
a->process != b->process ||
a->finalise_const != b->finalise_const ||
a->finalise != b->finalise ||
+ a->stretch != b->stretch ||
a->destroy != b->destroy)
return 0;
if (a->hash_output && memcpy(a->hash_output, b->hash_output, a->hash_size))