File: complex.t

package info (click to toggle)
libcrypt-simple-perl 0.06-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 84 kB
  • sloc: perl: 224; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 210 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w
use strict;
use Test;

plan tests => 2;

use Crypt::Simple;

my $r = bless {foo=>'bar'}, "thingie";
my $e = encrypt($r);
my $r2 = decrypt($e);
ok($r->isa("thingie"));
ok($r->{foo} eq 'bar');