File: keygen.t

package info (click to toggle)
libtext-diff-perl 0.35-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 108 kB
  • ctags: 35
  • sloc: perl: 949; makefile: 35
file content (25 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/local/bin/perl -w

use strict ;
use Test ;
use Text::Diff ;

my @A = map "$_\n", qw( 1 2  3_ 4_ ) ;
my @B = map "$_\n", qw( 1 2_ 3  4_ ) ;

my @tests = (
sub {
    ok !diff \@A, \@B, {
        KEYGEN => sub {
            local $_ = shift ; 
            s/_+//g ;
            return $_ . shift ;
        },
	KEYGEN_ARGS => [ "args" ],
    } ;
},
) ;

plan tests => scalar @tests ;

$_->() for @tests ;