forked from github/server
include the password module in the list of unit tests
This commit is contained in:
parent
54d25e91dd
commit
f14ee2adaa
2 changed files with 2 additions and 1 deletions
|
@ -80,6 +80,7 @@ int RunAllTests(int argc, char *argv[])
|
|||
ADD_SUITE(bsdstring);
|
||||
ADD_SUITE(functions);
|
||||
ADD_SUITE(parser);
|
||||
ADD_SUITE(password);
|
||||
ADD_SUITE(umlaut);
|
||||
ADD_SUITE(unicode);
|
||||
ADD_SUITE(strings);
|
||||
|
|
|
@ -9,7 +9,7 @@ static void test_passwords(CuTest *tc) {
|
|||
CuAssertStrEquals(tc, "$0$saltyfish$password", hash);
|
||||
CuAssertIntEquals(tc, VERIFY_OK, password_verify(hash, "password"));
|
||||
CuAssertIntEquals(tc, VERIFY_FAIL, password_verify(hash, "arseword"));
|
||||
CuAssertIntEquals(tc, VERIFY_UNKNOWN, password_verify("$9$saltyfish$password", "arseword"));
|
||||
CuAssertIntEquals(tc, VERIFY_UNKNOWN, password_verify("$9$saltyfish$password", "password"));
|
||||
}
|
||||
|
||||
CuSuite *get_password_suite(void) {
|
||||
|
|
Loading…
Reference in a new issue