=================================================================== RCS file: /cvs/todotxt/Text-Todo/t/read_todo.t,v retrieving revision 1.5 retrieving revision 1.10 diff -u -r1.5 -r1.10 --- todotxt/Text-Todo/t/read_todo.t 2010/01/10 04:08:59 1.5 +++ todotxt/Text-Todo/t/read_todo.t 2010/01/18 00:19:55 1.10 @@ -8,14 +8,14 @@ # AUTHOR: Andrew Fresh (AAF), andrew@cpan.org # COMPANY: Red River Communications # CREATED: 07/09/09 11:45:52 -# REVISION: $RedRiver: read_todo.t,v 1.4 2010/01/08 23:06:09 andrew Exp $ +# REVISION: $AFresh1: read_todo.t,v 1.9 2010/01/15 19:44:32 andrew Exp $ #=============================================================================== use strict; use warnings; use File::Spec; 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 $tempdir = tempdir( 'todotxt-XXXXXXX', CLEANUP => 1 ); @@ -67,6 +67,12 @@ projects => ['report_bug'], done => undef, }, + { text => 'x 2009-01-01 completed with a date', + priority => undef, + contexts => [], + projects => [], + done => '2009-01-01', + }, ); my %extra_todo = ( @@ -77,7 +83,7 @@ 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"); @@ -91,7 +97,7 @@ 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]" );