[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.2 and 1.3

version 1.2, 2010/01/09 05:00:21 version 1.3, 2010/01/09 06:26:43
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.1 2010/01/08 04:38:44 andrew Exp $  #     REVISION:  $RedRiver: list.t,v 1.2 2010/01/09 05:00:21 andrew Exp $
 #===============================================================================  #===============================================================================
   
 use strict;  use strict;
Line 100 
Line 100 
 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;
   ok( $entry_to_archive = $copy->list->[1], 'read entry_to_archive' );
   is( $entry_to_archive->text,
       'x completed entry 3',
       'make sure we got the right entry'
   );
   
 TODO: {  TODO: {
     local $TODO = 'No tests for archive and it isn\'t even written yet';      local $TODO = 'No tests for archive and it isn\'t even written yet';
     ok( $copy->archive );      ok( $copy->archive );
 }      isnt( $copy->list->[1]->text,
           $entry_to_archive->text, 'make sure it changed' );
   
 TODO: {  SKIP: {
     local $TODO = 'No tests for addto and it isn\'t even written yet';          skip 'unable to load done_file', 1
     ok( $copy->addto );              if !ok( $copy->load('done_file'), 'read the done_file' );
           is( $copy->list->[-1]->text,
               $entry_to_archive->text, 'make sure it moved to the archive' );
       }
 }  }
   
 TODO: {  my $file;
     local $TODO = 'No tests for listfile and it isn\'t even written yet';  ok( $file = $copy->file('done_file'), 'get the done_file name' );
     ok( $copy->listfile );  is( $file, $todo_dir . '/done.txt', 'the done_file name what we expected?' );
 }  
   ok( $copy->addto( $file, 'added text' ) );
   
   my @done;
   ok( @done = $copy->listfile('done_file'), 'get items in done_file' );
   is( $done[-1]->text, 'added text', 'make sure what we added is there' );
   
   #is( $done[-2]->text, $entry_to_archive->text,
   #    'make sure it moved to the archive' );
   
 done_testing();  done_testing();

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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