aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.c
diff options
context:
space:
mode:
authorPerlbotics <perlbotix@cpan.org>2017-11-21 23:46:21 +0100
committerPerlbotics <perlbotix@cpan.org>2017-11-21 23:46:21 +0100
commitf7037ff39bdff62f20ba325f25c86c035840691d (patch)
tree2ca545164d4a99902add03be3911dbc866b3be10 /test.c
parent3417c5e6d0a3647c6d453dbd3fad91649663df2b (diff)
downloadzxcvbn-c-f7037ff39bdff62f20ba325f25c86c035840691d.tar.gz
Selftests removed from library and placed into test-internals.
Selftests extracted (removed) from zxcvbn.c and test.c and placed into test-internals.c Makefile updated.
Diffstat (limited to 'test.c')
-rw-r--r--test.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/test.c b/test.c
index 4634dab..df2b41f 100644
--- a/test.c
+++ b/test.c
@@ -33,9 +33,6 @@
#include "stdafx.h"
#endif
-/* forward declaration / not part of official API */
-unsigned int _selftest_errors();
-
const char *UsrDict[] =
{
"Onename.Twoname@example.com", "Onename", "Twoname", "example.com", "example",
@@ -210,16 +207,10 @@ int DoChecks(char *file)
int main(int argc, char **argv)
{
int i, Quiet, Checks, White;
- unsigned int SelftestErrors;
Quiet = 0;
Checks = 0;
White = 0;
- SelftestErrors = _selftest_errors();
- printf("Selftest returned %d error(s).\n", SelftestErrors );
- if (SelftestErrors)
- return 1;
-
if (!ZxcvbnInit("zxcvbn.dict"))
{
printf("Failed to open dictionary file\n");