/[Semantic-Engine]/EPrints/t/EPrints.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

Annotation of /EPrints/t/EPrints.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20 - (hide annotations)
Mon Jul 2 18:26:00 2007 UTC (16 years, 11 months ago) by dpavlin
File MIME type: application/x-troff
File size: 645 byte(s)
fix test
1 dpavlin 3 #!/usr/bin/perl
2     use strict;
3     use warnings;
4    
5     my $debug = shift @ARGV;
6    
7 dpavlin 12 use Test::More tests => 8;
8 dpavlin 3 use Data::Dump qw/dump/;
9     use Cwd qw/abs_path/;
10    
11     BEGIN {
12     use_ok('EPrints');
13     }
14    
15     ok(my $abs_path = abs_path($0), "abs_path");
16     $abs_path =~ s!/[^/]*$!/!; #!fix-vim
17    
18     ok( EPrints->id( 42 ), 'id' );
19     ok( EPrints->lookup( 'title' ), 'title' );
20 dpavlin 4
21 dpavlin 20 ok( my $slogovi = EPrints->slogovi( 'otorinolaringolog je duga rijeè' ), 'slogovi' );
22 dpavlin 4
23 dpavlin 12 diag "slogovi: $slogovi" if $debug;
24    
25     ok( my ($type,$uri) = EPrints->fulltext, 'fulltext' );
26    
27     cmp_ok( $type, 'eq', 'pdf', 'fulltext type' );
28     like( $uri, qr!^http://!, 'fulltext uri' );
29    
30     diag "type: $type uri: $uri" if $debug;

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26