Skip to content

Commit

Permalink
Add test names to password test.
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Dec 2, 2011
1 parent 094ecad commit 5b69058
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/101_password.t
Expand Up @@ -17,19 +17,19 @@ $hash = $crypt->password('nevairbe');

# check whether password matches
$ret = $crypt->check($hash, 'nevairbe');
ok($ret);
ok($ret, 'password match');

# check whether password fails
$ret = $crypt->check($hash, 'wrong');
ok(! $ret);
ok(! $ret, 'password mismatch');

# repeat for md5
$hash = $crypt->password('nevairbe', 'md5');

# check whether password matches
$ret = $crypt->check($hash, 'nevairbe');
ok($ret);
ok($ret, 'password match (md5)');

# check whether password fails
$ret = $crypt->check($hash, 'wrong');
ok(! $ret);
ok(! $ret, 'password mismatch (md5)');

0 comments on commit 5b69058

Please sign in to comment.