/[wait]/branches/unido/t/filter-base.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 /branches/unido/t/filter-base.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 106 - (hide annotations)
Tue Jul 13 12:22:09 2004 UTC (19 years, 9 months ago) by dpavlin
File MIME type: application/x-troff
File size: 1208 byte(s)
Changes made by Andreas J. Koenig <andreas.koenig(at)anima.de> for Unido project

1 dpavlin 106 # -*- Mode: Perl -*-
2     # base.t --
3     # ITIID : $ITI$ $Header $__Header$
4     # Author : Ulrich Pfeifer
5     # Created On : Thu Aug 15 18:47:58 1996
6     # Last Modified By: Ulrich Pfeifer
7     # Last Modified On: Sun Nov 22 18:44:32 1998
8     # Language : CPerl
9     # Update Count : 22
10     # Status : Unknown, Use with caution!
11     #
12     # Copyright (c) 1996-1997, Ulrich Pfeifer
13     #
14     #
15    
16     BEGIN { $| = 1; print "1..25\n"; }
17     END {print "not ok 1\n" unless $loaded;}
18     use WAIT::Filter qw(Stem Soundex Phonix Metaphone);
19     $loaded = 1;
20     print "ok 1\n";
21    
22     @inputs = qw(computer computers pfeifer pfeiffer knight night);
23     @stems = qw(comput comput pfeifer pfeiffer knight night);
24     @sounds = qw(C513 C513 P116 P116 K523 N230);
25     @phonos = qw(K5130000 K5138000 F7000000 F7000000 N3000000 N3000000);
26     @mphone = qw(KMPTR KMPTR PFFR PFFR NT NT);
27     $test = 2;
28     for (@inputs) {
29     print ((Stem($_) eq shift @stems )?"ok $test\n":"not ok $test\n");$test++;
30     print ((Soundex($_) eq shift @sounds)?"ok $test\n":"not ok $test\n");$test++;
31     print ((Phonix($_) eq shift @phonos)?"ok $test\n":"not ok $test\n");$test++;
32     print ((Metaphone($_) eq shift @mphone)?"ok $test\n":"not ok $test\n");$test++;
33     }

  ViewVC Help
Powered by ViewVC 1.1.26