File: old_1_mmb.t

package info (click to toggle)
libmail-mboxparser-perl 0.51-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 260 kB
  • ctags: 78
  • sloc: perl: 1,415; makefile: 51
file content (19 lines) | stat: -rwxr-xr-x 298 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /usr/bin/perl -w

use Test;
use File::Spec;
use strict;

use lib '../..';
use Mail::MboxParser;

my $src = File::Spec->catfile('t', 'testbox');

BEGIN { plan tests => 3 };

my $mb  = Mail::MboxParser->new($src, oldparser => 1);

ok(defined $mb);
ok($mb->nmsgs == 9);
ok($mb->current_pos == 0);