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

Diff for /todotxt/Text-Todo/t/read_todo.t between version 1.6 and 1.10

version 1.6, 2010/01/11 01:08:35 version 1.10, 2010/01/18 00:19:55
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:  07/09/09 11:45:52  #      CREATED:  07/09/09 11:45:52
 #     REVISION:  $RedRiver: read_todo.t,v 1.5 2010/01/10 04:08:59 andrew Exp $  #     REVISION:  $AFresh1: read_todo.t,v 1.9 2010/01/15 19:44:32 andrew Exp $
 #===============================================================================  #===============================================================================
   
 use strict;  use strict;
 use warnings;  use warnings;
 use File::Spec;  use File::Spec;
 use File::Temp qw/ tempdir /;  use File::Temp qw/ tempdir /;
 use Test::More tests => 122;  use Test::More tests => 138;
   
 my $todo_file = File::Spec->catfile( 't', 'todo1.txt' );  my $todo_file = File::Spec->catfile( 't', 'todo1.txt' );
 my $tempdir = tempdir( 'todotxt-XXXXXXX', CLEANUP => 1 );  my $tempdir = tempdir( 'todotxt-XXXXXXX', CLEANUP => 1 );
Line 83 
Line 83 
     done     => undef,      done     => undef,
 );  );
   
 BEGIN: { use_ok( 'Text::Todo', 'use Text::Todo' ) }  BEGIN { use_ok( 'Text::Todo', 'use Text::Todo' ) }
   
 diag("Testing read Text::Todo $Text::Todo::VERSION");  diag("Testing read Text::Todo $Text::Todo::VERSION");
   
Line 97 
Line 97 
   
 ok( $todo->save($dup_todo_file), "Save to tempfile" );  ok( $todo->save($dup_todo_file), "Save to tempfile" );
   
 my $dup_todo = new_ok( 'Text::Todo' => [$dup_todo_file], 'New todo' );  my $dup_todo = new_ok( 'Text::Todo' => [{ todo_file => $dup_todo_file }], 'New todo' );
   
 ok( $todo->load($todo_file), "Load file [$todo_file]" );  ok( $todo->load($todo_file), "Load file [$todo_file]" );
   

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.10

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