=================================================================== RCS file: /cvs/todotxt/Text-Todo/t/entry.t,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- todotxt/Text-Todo/t/entry.t 2009/07/10 23:26:14 1.1 +++ todotxt/Text-Todo/t/entry.t 2009/07/11 16:58:13 1.2 @@ -7,7 +7,7 @@ # AUTHOR: Andrew Fresh (AAF), andrew@cpan.org # COMPANY: Red River Communications # CREATED: 07/10/09 11:32:39 -# REVISION: $RedRiver$ +# REVISION: $RedRiver: 20.entry.t,v 1.1 2009/07/10 22:26:14 andrew Exp $ #=============================================================================== use strict; @@ -46,14 +46,14 @@ is_deeply( [ $e->projects ], $sample{projects}, "check projects" ); $sample{text} =~ s/^( \s* \( $sample{priority} \))/$1 $sample{prepend}/xms; -ok( $e->prepend( $sample{prepend} ), 'prepend entry' ); +ok( $e->prepend( $sample{prepend} ), 'Prepend entry' ); is( $e->text, $sample{text}, "Make sure entry matches" ); is( $e->priority, $sample{priority}, "check priority" ); is_deeply( [ $e->contexts ], $sample{contexts}, "check contexts" ); is_deeply( [ $e->projects ], $sample{projects}, "check projects" ); $sample{text} .= ' ' . $sample{append}; -ok( $e->append( $sample{append} ), 'append entry' ); +ok( $e->append( $sample{append} ), 'Append entry' ); is( $e->text, $sample{text}, "Make sure entry matches" ); is( $e->priority, $sample{priority}, "check priority" ); is_deeply( [ $e->contexts ], $sample{contexts}, "check contexts" ); @@ -62,13 +62,13 @@ ok( !$e->in_project( $sample{new_project} ), 'not in new project yet' ); push @{ $sample{projects} }, $sample{new_project}; $sample{text} .= ' +' . $sample{new_project}; -ok( $e->append( '+' . $sample{new_project} ), 'add project' ); +ok( $e->append( '+' . $sample{new_project} ), 'Add project' ); is( $e->text, $sample{text}, "Make sure entry matches" ); ok( $e->in_project( $sample{new_project} ), 'now in new project' ); ok( !$e->in_context( $sample{new_context} ), 'not in new context yet' ); push @{ $sample{contexts} }, $sample{new_context}; $sample{text} .= ' @' . $sample{new_context}; -ok( $e->append( '@' . $sample{new_context} ), 'add context' ); +ok( $e->append( '@' . $sample{new_context} ), 'Add context' ); is( $e->text, $sample{text}, "Make sure entry matches" ); ok( $e->in_context( $sample{new_context} ), 'now in new context' );