[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.7 and 1.8

version 1.7, 2010/01/10 19:29:17 version 1.8, 2010/01/10 22:39:26
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.6 2010/01/10 04:28:49 andrew Exp $  #     REVISION:  $RedRiver: list.t,v 1.7 2010/01/10 19:29:17 andrew Exp $
 #===============================================================================  #===============================================================================
   
 use strict;  use strict;
 use warnings;  use warnings;
   
 use Test::More tests => 49;  use Test::More tests => 53;
   
 use File::Temp qw/ tempdir /;  use File::Temp qw/ tempdir /;
 use Data::Dumper;  use Data::Dumper;
Line 64 
Line 64 
 $orig = undef;  $orig = undef;
   
 my @pri_list;  my @pri_list;
 ok( @pri_list = $copy->listpri, 'list priority item' );  ok( @pri_list = $copy->listpri('A'), 'list priority item' );
 is( scalar @pri_list, 1, 'only 1 item in the priority list' );  is( scalar @pri_list, 1, 'only 1 item in the priority list' );
 is( $pri_list[0]->text, '(A) entry 1 @one +uno', 'priority item is correct' );  is( $pri_list[0]->text, '(A) entry 1 @one +uno', 'priority item is correct' );
   
Line 98 
Line 98 
   
 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 @contexts;
   ok( @contexts = $copy->listcon, 'listcon for current list' );
   is_deeply( \@contexts, [ 'one', 'two' ], 'got the contexts we expected' );
   
 my $entry_to_archive;  my $entry_to_archive;
 ok( $entry_to_archive = $copy->list->[3], 'read entry_to_archive' );  ok( $entry_to_archive = $copy->list->[3], 'read entry_to_archive' );

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

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