35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* tests.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2018/10/23 21:00:24 by gtertysh #+# #+# */
|
|
/* Updated: 2018/10/23 21:05:47 by gtertysh ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "t.h"
|
|
#include "tests.h"
|
|
|
|
int all_tests()
|
|
{
|
|
_VERIFY("md5:", md5_tests);
|
|
_VERIFY("sha:", sha_tests);
|
|
_VERIFY("base64:", base64_tests);
|
|
_VERIFY("des:", des_tests);
|
|
_VERIFY("pbkdf2:", pbkdf2_tests);
|
|
return 0;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
int result;
|
|
|
|
result = all_tests();
|
|
if (result == 0)
|
|
printf("PASSED\n");
|
|
|
|
return result != 0;
|
|
}
|