From f67531bad2b0aaebfea7ec63922290f28e86d6ab Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 27 Dec 2007 14:36:45 +0000 Subject: r3304@rfc-1918: dakkar | 2007-12-27 13:19:58 +0100 prepraering fro branching --- t/01-use.t | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 t/01-use.t (limited to 't/01-use.t') 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'); -- cgit v1.2.3