2018-10-23 21:07:38 +03:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* 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 */
|
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
2019-03-02 20:52:33 +02:00
|
|
|
#include "t.h"
|
2018-10-18 21:57:26 +03:00
|
|
|
#include "tests.h"
|
2018-10-23 20:41:44 +03:00
|
|
|
|
2019-03-02 20:52:33 +02:00
|
|
|
int all_tests()
|
|
|
|
{
|
2019-04-10 17:20:22 +03:00
|
|
|
_VERIFY("md5:", md5_tests);
|
|
|
|
_VERIFY("sha:", sha_tests);
|
|
|
|
_VERIFY("base64:", base64_tests);
|
|
|
|
_VERIFY("des:", des_tests);
|
|
|
|
_VERIFY("pbkdf2:", pbkdf2_tests);
|
2019-03-02 20:52:33 +02:00
|
|
|
return 0;
|
|
|
|
}
|
2018-10-21 20:46:05 +03:00
|
|
|
|
2019-03-02 20:52:33 +02:00
|
|
|
int main()
|
|
|
|
{
|
|
|
|
int result;
|
2018-10-21 20:46:05 +03:00
|
|
|
|
2019-03-02 20:52:33 +02:00
|
|
|
result = all_tests();
|
|
|
|
if (result == 0)
|
|
|
|
printf("PASSED\n");
|
2018-10-18 21:57:26 +03:00
|
|
|
|
2019-03-02 20:52:33 +02:00
|
|
|
return result != 0;
|
2018-10-23 21:07:38 +03:00
|
|
|
}
|