From f778c553ef832660555822e9550864624bc8186b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 20 Jul 2011 15:06:06 +0200 Subject: Prepare for configurable key setup cost --- t/20-app-raps2-password.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/20-app-raps2-password.t b/t/20-app-raps2-password.t index a8f56e8..4d8f474 100644 --- a/t/20-app-raps2-password.t +++ b/t/20-app-raps2-password.t @@ -67,10 +67,10 @@ $pw = App::Raps2::Password->new( isa_ok($pw, 'App::Raps2::Password'); -is($pw->decrypt('53616c7465645f5f80d8c367e15980d43ec9a6eabc5390b4'), 'quux', +is($pw->decrypt(data => '53616c7465645f5f80d8c367e15980d43ec9a6eabc5390b4'), 'quux', 'decrypt okay'); -is($pw->decrypt($pw->encrypt('foo')), 'foo', 'encrypt->decrypt okay'); +is($pw->decrypt(data => $pw->encrypt(data => 'foo')), 'foo', 'encrypt->decrypt okay'); ok($pw->verify('3lJRlaRuOGWv/z3g1DAOlcH.u9vS8Wm'), 'verify: verifies correct hash'); -- cgit v1.2.3