diff options
author | dakkar <dakkar@luxion> | 2007-12-27 14:36:45 +0000 |
---|---|---|
committer | dakkar <dakkar@luxion> | 2007-12-27 14:36:45 +0000 |
commit | f67531bad2b0aaebfea7ec63922290f28e86d6ab (patch) | |
tree | c5650db6cef8af570767ccb00bfacdf422a49632 /t/01-use.t | |
parent | r3302@rfc-1918: dakkar | 2007-12-27 13:18:56 +0100 (diff) | |
download | Graylister-f67531bad2b0aaebfea7ec63922290f28e86d6ab.tar.gz Graylister-f67531bad2b0aaebfea7ec63922290f28e86d6ab.tar.bz2 Graylister-f67531bad2b0aaebfea7ec63922290f28e86d6ab.zip |
r3304@rfc-1918: dakkar | 2007-12-27 13:19:58 +0100
prepraering fro branching
Diffstat (limited to 't/01-use.t')
-rw-r--r-- | t/01-use.t | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/t/01-use.t b/t/01-use.t new file mode 100644 index 0000000..f151e18 --- /dev/null +++ b/t/01-use.t @@ -0,0 +1,16 @@ +# -*- mode: cperl -*- +use Test::More tests=>3; + +BEGIN { + use_ok('DAKKAR::Graylister') + or die; +} + +my ($host,$from,$to)=qw(10.1.0.0 gino@qui.it pino@li.com); +is_deeply([DAKKAR::Graylister::_cleanup_data($host,$from,$to)], + [$host,$from,$to], + 'no cleanup'); +$from='gino-return-10-@qui.it'; +is_deeply([DAKKAR::Graylister::_cleanup_data($host,$from,$to)], + [$host,'gino-return-$-@qui.it',,$to], + 'ezmlm cleanup'); |