Debian Codegraph @

modules/metaphone2/tests/encode.at

raw
1 # This file is part of GNU Dico. -*- Autotest -*-
2 # Copyright (C) 2016-2024 Sergey Poznyakoff
3 #
4 # GNU Dico is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
8 #
9 # GNU Dico is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with GNU Dico. If not, see <http://www.gnu.org/licenses/>.
16
17 AT_SETUP([Encode])
18 AT_KEYWORDS([encode])
19
20 AT_CHECK([DICOD_TEST metaphone2 encode -length=4 dnl
21 Kuczewski dnl
22 dumb dnl
23 thumb dnl
24 Campbell dnl
25 island dnl
26 Carlysle dnl
27 sugar dnl
28 Snider dnl
29 Schneider dnl
30 Wasserman dnl
31 Vasserman dnl
32 tagliaro dnl
33 Jose dnl
34 orchestra dnl
35 archive
36 ],
37 0,
38 [Kuczewski: 'KSSK' -- 'KXFS'
39 dumb: 'TM' -- NULL
40 thumb: '0M' -- 'TM'
41 Campbell: 'KMPL' -- NULL
42 island: 'ALNT' -- NULL
43 Carlysle: 'KRLL' -- NULL
44 sugar: 'XKR' -- 'SKR'
45 Snider: 'SNTR' -- 'XNTR'
46 Schneider: 'XNTR' -- 'SNTR'
47 Wasserman: 'ASRM' -- 'FSRM'
48 Vasserman: 'FSRM' -- NULL
49 tagliaro: 'TKLR' -- 'TLR'
50 Jose: 'JS' -- 'HS'
51 orchestra: 'ARKS' -- NULL
52 archive: 'ARXF' -- 'ARKF'
53 ])
54
55 AT_CLEANUP