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