version 1.5, 2010/01/09 07:02:35 |
version 1.7, 2010/01/10 19:29:17 |
|
|
# AUTHOR: Andrew Fresh (AAF), andrew@cpan.org |
# AUTHOR: Andrew Fresh (AAF), andrew@cpan.org |
# COMPANY: Red River Communications |
# COMPANY: Red River Communications |
# CREATED: 01/07/10 19:11 |
# CREATED: 01/07/10 19:11 |
# REVISION: $RedRiver: list.t,v 1.4 2010/01/09 06:54:15 andrew Exp $ |
# REVISION: $RedRiver: list.t,v 1.6 2010/01/10 04:28:49 andrew Exp $ |
#=============================================================================== |
#=============================================================================== |
|
|
use strict; |
use strict; |
use warnings; |
use warnings; |
|
|
use Test::More tests => 47; |
use Test::More tests => 49; |
|
|
use File::Temp qw/ tempdir /; |
use File::Temp qw/ tempdir /; |
use Data::Dumper; |
use Data::Dumper; |
|
|
is_deeply( \@projects, [ 'dos', 'uno' ], 'got the projects we expected' ); |
is_deeply( \@projects, [ 'dos', 'uno' ], 'got the projects we expected' ); |
|
|
my $entry_to_archive; |
my $entry_to_archive; |
ok( $entry_to_archive = $copy->list->[1], 'read entry_to_archive' ); |
ok( $entry_to_archive = $copy->list->[3], 'read entry_to_archive' ); |
is( $entry_to_archive->text, |
is( $entry_to_archive->text, |
'x completed entry 3', |
'x completed entry 4', |
'make sure we got the right entry' |
'make sure we got the right entry' |
); |
); |
|
|
|
|
is( $done[-2]->text, $entry_to_archive->text, |
is( $done[-2]->text, $entry_to_archive->text, |
'make sure it moved to the archive' ); |
'make sure it moved to the archive' ); |
|
|
done_testing(); |
#done_testing(); |