summaryrefslogtreecommitdiff
path: root/t/29-app-raps2.t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-04-04 09:34:21 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-04-04 09:34:21 +0200
commit0d697c9e9edbe8ef391f03a42ccd60f7c4c19c76 (patch)
treef3be006d6695c7789597b374cf0e2eb341926964 /t/29-app-raps2.t
parentcbc81366fdd3b9f7cc19b8ce81c5b83994e91963 (diff)
Slightly extend App::Raps2 test
Diffstat (limited to 't/29-app-raps2.t')
-rw-r--r--t/29-app-raps2.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/29-app-raps2.t b/t/29-app-raps2.t
index 28fe4fc..c0baeac 100644
--- a/t/29-app-raps2.t
+++ b/t/29-app-raps2.t
@@ -3,9 +3,18 @@ use strict;
use warnings;
use 5.010;
-use Test::More tests => 2;
+use Test::More tests => 4;
+use Test::Exception;
use_ok('App::Raps2');
+is(length(App::Raps2::create_salt()), 16, 'create_salt: correct length');
+
+is_deeply(
+ { App::Raps2::file_to_hash('t/in/hash') },
+ { key => 'value', otherkey => 'othervalue' },
+ 'file_to_hash works',
+);
+
my $r2 = App::Raps2->new();
isa_ok($r2, 'App::Raps2');