Skip to content

Commit

Permalink
replace test_assert
Browse files Browse the repository at this point in the history
Signed-off-by: Shivshankar-Reddy <[email protected]>
  • Loading branch information
Shivshankar-Reddy committed May 9, 2024
1 parent 9e504c4 commit 08617a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/unit/test_help.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <stdlib.h>
#include <stdio.h>
#include <assert.h>

/* The flags are the following:
* --accurate: Runs tests with more iterations.
Expand Down
2 changes: 1 addition & 1 deletion src/unit/test_sha1.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ int test_sha1(int argc, char **argv, int flags)
for(i=0;i<20;i++)
printf("%02x", hash[i]);
printf("\n");
assert(memcmp(hash, expected, 20) == 0);
TEST_ASSERT(memcmp(hash, expected, 20) == 0);
return 0;
}

0 comments on commit 08617a2

Please sign in to comment.