[BACK]Return to list.t CVS log [TXT][DIR] Up to [local] / todotxt / Text-Todo / t

Diff for /todotxt/Text-Todo/t/list.t between version 1.4 and 1.7

version 1.4, 2010/01/09 06:54:15 version 1.7, 2010/01/10 19:29:17
Line 8 
Line 8 
 #       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.3 2010/01/09 06:26:43 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 => 2;  use Test::More tests => 49;
   
 use File::Temp qw/ tempdir /;  use File::Temp qw/ tempdir /;
 use Data::Dumper;  use Data::Dumper;
Line 96 
Line 96 
     }      }
 }  }
   
 @projects;  
 ok( @projects = $copy->listproj, 'listproj for current list' );  ok( @projects = $copy->listproj, 'listproj for current list' );
 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'
 );  );
   
Line 128 
Line 127 
 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();

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.7

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>