[BACK]Return to text.t CVS log [TXT][DIR] Up to [local] / todotxt / Text-Todo-REST-API / t / formats

Diff for /todotxt/Text-Todo-REST-API/t/formats/text.t between version 1.4 and 1.5

version 1.4, 2010/01/17 22:55:59 version 1.5, 2010/01/17 23:08:20
Line 7 
Line 7 
 #       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:  $AFresh1: text.t,v 1.3 2010/01/17 21:53:35 andrew Exp $  #     REVISION:  $AFresh1: text.t,v 1.4 2010/01/17 22:55:59 andrew Exp $
 #===============================================================================  #===============================================================================
   
 use strict;  use strict;
Line 32 
Line 32 
 diag("Testing entry $subclass $Text::Todo::REST::API::text::VERSION");  diag("Testing entry $subclass $Text::Todo::REST::API::text::VERSION");
   
 my $api = new_ok( $class,  my $api = new_ok( $class,
       [ { basedir => 't', path_info => '/lists.' . $ext } ] );
   isa_ok( $api, $subclass );
   
   my $files_should_be = ['todo.txt'];
   my @files;
   ok( @files = $api->get_files, 'get files' );
   is_deeply( \@files, $files_should_be, 'Got correct files' );
   
   my $files_dump_should_be = join q{}, map "$_\n", @{ $files_should_be };
   my $result;
   ok( ($result) = $api->Dump( @files ), 'Dump files' );
   is_deeply( $result, $files_dump_should_be, 'files Dump as expected' );
   
   $api = new_ok( $class,
     [ { basedir => 't', path_info => '/lists/todo.' . $ext } ] );      [ { basedir => 't', path_info => '/lists/todo.' . $ext } ] );
 isa_ok( $api, $subclass );  isa_ok( $api, $subclass );
   
Line 65 
Line 79 
 my $list_dump_should_be = join q{},  my $list_dump_should_be = join q{},
     map { $_->{text} . "\n" } @{$list_should_be};      map { $_->{text} . "\n" } @{$list_should_be};
   
 my $result;  $result = undef;
 ok( !eval { $result = $api->Load() }, 'Load method' );  ok( !eval { $result = $api->Load() }, 'Load method' );
 like( $@, '/^Unable to Load \[list\]/', 'Failed Load as expected' );  like( $@, '/^Unable to Load \[list\]/', 'Failed Load as expected' );
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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