/[Search-Estraier]/trunk/t/1_document.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/t/1_document.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 13 by dpavlin, Wed Jan 4 19:28:30 2006 UTC revision 14 by dpavlin, Wed Jan 4 21:51:01 2006 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use Test::More tests => 30;  use Test::More tests => 33;
7  use Test::Exception;  use Test::Exception;
8  use Data::Dumper;  use Data::Dumper;
9    
# Line 54  ok(my $draft = $doc->dump_draft, 'dump_d Line 54  ok(my $draft = $doc->dump_draft, 'dump_d
54    
55  diag "dump_draft:\n$draft";  diag "dump_draft:\n$draft";
56    
57  #ok(my $doc2 = new_from_draft Search::Estraier::Document($draft), 'new_from_draft');  ok(my $doc2 = new Search::Estraier::Document($draft), 'new from draft');
58  #cmp_ok($doc2->dump_draft, 'eq', $draft, 'drafts same');  cmp_ok($doc2->dump_draft, 'eq', $draft, 'drafts same');
59    
60  cmp_ok($doc->id, '==', -1, 'id');  cmp_ok($doc->id, '==', -1, 'id');
61  #cmp_ok($doc2->id, '==', -1, 'id');  cmp_ok($doc2->id, '==', -1, 'id');
62    
63  ok(my @attr = $doc->attr_names, 'attr_names');  ok(my @attr = $doc->attr_names, 'attr_names');
64  diag "attr_names: ", join(',',@attr), "\n";  diag "attr_names: ", join(',',@attr), "\n";

Legend:
Removed from v.13  
changed lines
  Added in v.14

  ViewVC Help
Powered by ViewVC 1.1.26