RegressionTests__KoelnerPhoneticCodeStringComparatorTest.st
author Claus Gittinger <cg@exept.de>
Tue, 09 Jul 2019 18:53:03 +0200
changeset 2327 bf482d49aeaf
parent 2169 a1a0194d9890
permissions -rw-r--r--
#QUALITY by exept class: RegressionTests::StringTests added: #test82c_expanding
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 1413
diff changeset
     1
"{ Package: 'stx:goodies/regression' }"
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
540
cbe585857328 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 534
diff changeset
     3
"{ NameSpace: RegressionTests }"
cbe585857328 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 534
diff changeset
     4
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
TestCase subclass:#KoelnerPhoneticCodeStringComparatorTest
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	instanceVariableNames:'sc'
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
	classVariableNames:''
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
	poolDictionaries:''
1413
c9ef56f181ff #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
     9
	category:'tests-Regression-Collections-Utilities'
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
!
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
2169
a1a0194d9890 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 1668
diff changeset
    13
!KoelnerPhoneticCodeStringComparatorTest methodsFor:'initialize / release'!
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
setUp
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
    sc := PhoneticStringUtilities::KoelnerPhoneticCodeStringComparator new
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
! !
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!KoelnerPhoneticCodeStringComparatorTest methodsFor:'tests'!
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    21
test01_SomeCombinations
1668
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    22
    "tests if all character combinations (up to 4 chars) are handled"
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    23
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
    |code s|
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
1668
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    26
    "/ self skip:'this test does not really test anything (except if all 4-char string combinations can be soundexed)'.
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    27
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    28
    $A to:$Z do:[:c1 |
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    29
        s := String with:c1.
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    30
        code := (sc phoneticStringsFor:s) first.
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    31
        "/ self assert:( code notEmpty ).
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    32
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    33
        $A to:$Z do:[:c2 |
1668
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    34
            s := String with:c1 with:c2.
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    35
            code := (sc phoneticStringsFor:s) first.
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    36
            "/ self assert:( code notEmpty ).
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    37
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    38
            $A to:$Z do:[:c3 |
1668
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    39
                s := String with:c1 with:c2 with:c3.
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    40
                code := (sc phoneticStringsFor:s) first.
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    41
                "/ self assert:( code notEmpty ).
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    42
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    43
                $A to:$Z do:[:c4 |
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    44
                    s := String with:c1 with:c2 with:c3 with:c4.
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    45
                    code := (sc phoneticStringsFor:s) first.
1668
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    46
                    "/ self assert:( code notEmpty ).
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    47
                ].
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    48
            ].
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    49
        ].
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    ].
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    51
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    52
    "Created: / 28-07-2017 / 09:21:39 / cg"
1668
c9120dbc953f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 1658
diff changeset
    53
    "Modified: / 29-07-2017 / 14:17:56 / cg"
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
!
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    56
test02_WellKnownResults
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    |code koeln|
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    koeln := [:w | (sc phoneticStringsFor:w) first].
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    code := (sc phoneticStringsFor:'Miller') first.
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
    self assert:( code = 'Miller' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
    #( 'Acton' 'Ashdown' 'Ashton' 'Astin' 'Aston' 'Austen' 'Austin' 'Austine' 'Axten')
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
    do:[:w |
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    66
        code := koeln value:(w).
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    67
        self assert:( code = (w asKoelnerPhoneticCode)).
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
    ].
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
    #( 'Reader' 'Reeder' 'Rider' 'Ritter' 'Rothera' 'Rothra' 'Ruder' 'Rutter' 'Ryder')
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    do:[:w |
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    72
        code := koeln value:(w).
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    73
        self assert:( code = (w asKoelnerPhoneticCode)).
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
    ].
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
    #( 'Wace' 'Waugh' 'Wookey')
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    do:[:w |
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    78
        code := koeln value:(w).
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    79
        self assert:( code = (w asKoelnerPhoneticCode)).
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
    ].
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
    code := koeln value:('Abbot').
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
    self assert:( code = 'Abbot' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
    code := koeln value:('Abbots').
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
    self assert:( code = 'Abbots' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
    code := koeln value:('Ashcroft').
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
    self assert:( code = 'Ashcroft' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
    code := koeln value:('Lloyd').
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
    self assert:( code = 'Lloyd' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
    code := koeln value:('Pfister').
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
    self assert:( code = 'Pfister' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
    self assert: ( koeln value:( 'A' )) = ('A' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
    self assert: ( koeln value:( 'B' )) = ('B' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    self assert: ( koeln value:( 'C' )) = ('C' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    self assert: ( koeln value:( 'D' )) = ('D' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
    self assert: ( koeln value:( 'E' )) = ('E' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
    self assert: ( koeln value:( 'F' )) = ('F' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
    self assert: ( koeln value:( 'G' )) = ('G' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
    self assert: ( koeln value:( 'H' )) = ('H' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
    self assert: ( koeln value:( 'I' )) = ('I' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
    self assert: ( koeln value:( 'J' )) = ('J' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
    self assert: ( koeln value:( 'K' )) = ('K' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
    self assert: ( koeln value:( 'L' )) = ('L' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
    self assert: ( koeln value:( 'M' )) = ('M' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    self assert: ( koeln value:( 'N' )) = ('N' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
    self assert: ( koeln value:( 'O' )) = ('O' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
    self assert: ( koeln value:( 'P' )) = ('P' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
    self assert: ( koeln value:( 'Q' )) = ('Q' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    self assert: ( koeln value:( 'R' )) = ('R' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
    self assert: ( koeln value:( 'S' )) = ('S' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
    self assert: ( koeln value:( 'T' )) = ('T' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
    self assert: ( koeln value:( 'U' )) = ('U' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
    self assert: ( koeln value:( 'V' )) = ('V' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
    self assert: ( koeln value:( 'W' )) = ('W' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
    self assert: ( koeln value:( 'X' )) = ('X' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
    self assert: ( koeln value:( 'Y' )) = ('Y' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
    self assert: ( koeln value:( 'Z' )) = ('Z' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
    self assert: ( koeln value:( 'AEHIOW' )) = ('AEHIOW' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
    self assert: ( koeln value:( 'BPFV' )) = ('BPFV' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
    self assert: ( koeln value:( 'CGJKQSXZ' )) = ('CGJKQSXZ'  asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
    self assert: ( koeln value:( 'DT' )) = ('DT'  asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
    self assert: ( koeln value:( 'L' )) = ('L'  asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
    self assert: ( koeln value:( 'MN' )) = ('MN'  asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
    self assert: ( koeln value:( 'R' )) = ('R'  asKoelnerPhoneticCode).
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   131
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   132
    "Created: / 28-07-2017 / 09:21:47 / cg"
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   133
!
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   134
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   135
test03_WellKnownResults
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   136
    |code|
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   137
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   138
    code := PhoneticStringUtilities koelnerPhoneticCodeOf:'Breschnew'.
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   139
    self assert:(code = '17863').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   140
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   141
    "/ these all sound similar - so they should get the same code
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   142
    #(
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   143
        'Breschnew'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   144
        'Breschneff'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   145
        'Braeschneff'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   146
        'Braessneff' 
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   147
        'Pressneff' 
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   148
        'Presznäph'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   149
        'Präschnäf'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   150
    ) do:[:each |
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   151
        self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:each) = '17863').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   152
    ].
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   153
        
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   154
    "/ these all sound similar - so they should get the same code
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   155
    #(
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   156
        'müller'
1655
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   157
        'mueller'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   158
        'Mueller'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   159
        'Muehler'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   160
        'Mueler'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   161
        'Müler'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   162
        'Mühler'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   163
        'Mühlher'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   164
        'Mühlherr'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   165
        'Mülherr'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   166
        'Müllherr'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   167
        'Mülleer'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   168
        'Mülar'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   169
        'Muelherr'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   170
        'Muelar'
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   171
        'möller'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   172
        'miller'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   173
        'muller' 
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   174
        'muler' 
1655
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   175
        'myler' 
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   176
        'mylar' 
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   177
        'myller' 
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   178
        'myller' 
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   179
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   180
        'nyller' 
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   181
        'nüller' 
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   182
        'niller' 
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   183
    ) do:[:each |
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   184
        self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:each) = '657').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   185
    ].
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   186
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   187
    "/ these all sound similar - so they should get the same code
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   188
    #(
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   189
        'schmidt'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   190
        'schmid'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   191
        'schmit'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   192
        'schmidtt' 
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   193
        'schmidd' 
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   194
    ) do:[:each |
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   195
        self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:each) = '862').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   196
    ].
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   197
1655
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   198
    "/ these all sound similar - so they should get the same code
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   199
    #(
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   200
        'schneider'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   201
        'sneider'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   202
        'shneider'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   203
        'schneiter'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   204
        'schneitar'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   205
    ) do:[:each |
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   206
        self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:each) = '8627').
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   207
    ].
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   208
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   209
    "/ these all sound similar - so they should get the same code
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   210
    #(
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   211
        'weber'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   212
        'webber'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   213
        'weeber'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   214
        'wehber'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   215
        'weper'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   216
        'wepper'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   217
        'weppar'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   218
    ) do:[:each |
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   219
        self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:each) = '317').
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   220
    ].
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   221
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   222
    "/ these all sound similar - so they should get the same code
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   223
    #(
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   224
        'meyer'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   225
        'mayer'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   226
        'meier'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   227
        'maier'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   228
        'maiar'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   229
        'meiar'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   230
        'meyar'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   231
        'meyer'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   232
    ) do:[:each |
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   233
        self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:each) = '67').
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   234
    ].
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   235
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   236
    #(
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   237
        'Czerny'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   238
        'Tscherny'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   239
        'Czernie'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   240
        'Tschernie'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   241
        'Schernie'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   242
        'Scherny'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   243
        'Scherno'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   244
        'Czerne'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   245
        'Zerny'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   246
        'Zerne'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   247
        'Zerni'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   248
        'cerni'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   249
        'tscherni'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   250
        'tserni'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   251
        'serni'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   252
        'Tzernie'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   253
        'Tzernie'
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   254
    ) do:[:each |
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   255
        self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:each) = '876').
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   256
    ].
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   257
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   258
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'fischer') = '387').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   259
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   260
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'wagner') = '3467').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   261
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'vagner') = '3467').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   262
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   263
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schulz') = '858').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   264
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schultz') = '858').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   265
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schults') = '858').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   266
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   267
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'becker') = '147').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   268
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'hoffmann') = '036').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   269
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'hofmann') = '036').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   270
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'hovmann') = '036').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   271
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'hovman') = '036').
1655
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   272
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   273
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schäfer') = '837').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   274
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schäffer') = '837').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   275
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schaeffer') = '837').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   276
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schaefer') = '837').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   277
1658
ca72582d49ee #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   278
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'Müller-Lüdenscheidt') = '65752682').
ca72582d49ee #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   279
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'Mueller-Litenscheidt') = '65752682').
ca72582d49ee #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   280
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   281
    "Created: / 28-07-2017 / 09:36:16 / cg"
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
! !
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
!KoelnerPhoneticCodeStringComparatorTest class methodsFor:'documentation'!
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
version
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
    ^ '$Header$'
1655
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   288
!
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   289
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   290
version_CVS
146a90714d5c #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 1654
diff changeset
   291
    ^ '$Header$'
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
! !
896
bf7016d7ffd2 class: RegressionTests::KoelnerPhoneticCodeStringComparatorTest
Stefan Vogel <sv@exept.de>
parents: 540
diff changeset
   293