/[Search-Estraier]/trunk/t/3_ResultDocument.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

Contents of /trunk/t/3_ResultDocument.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21 - (show annotations)
Thu Jan 5 13:55:17 2006 UTC (18 years, 3 months ago) by dpavlin
File MIME type: application/x-troff
File size: 459 byte(s)
test
1 #!/usr/bin/perl -w
2
3 use strict;
4 use blib;
5
6 use Test::More tests => 4;
7 use Test::Exception;
8 #use Data::Dumper;
9
10 BEGIN { use_ok('Search::Estraier') };
11
12 dies_ok { new Search::Estraier::ResultDocument } "new without args";
13 ok(my $rdoc = new Search::Estraier::ResultDocument(
14 uri => 'file:///foo',
15 attrs => {
16 foo => 1,
17 bar => 2,
18 },
19 snippet => 'none at all',
20 keywords => "foo\tbar\tbaz\tboo",
21 ), 'new');
22 isa_ok($rdoc, 'Search::Estraier::ResultDocument');
23

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26