summaryrefslogtreecommitdiff
path: root/t/29-app-raps2.t
blob: cbb170e916f05e448ffe5bc87a66c1e4e2cfa615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;

use Test::More tests => 4;
use Test::Fatal;

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');