RegressionTests__KoelnerPhoneticCodeStringComparatorTest.st
author Claus Gittinger <cg@exept.de>
Fri, 28 Jul 2017 09:45:17 +0200
changeset 1654 9091b358d049
parent 1447 2351db93aa5b
child 1655 146a90714d5c
permissions -rw-r--r--
#TUNING by cg class: RegressionTests::KoelnerPhoneticCodeStringComparatorTest added: #test01_SomeCombinations #test02_WellKnownResults #test03_WellKnownResults removed: #testSomeCombinations #testWellKnownResults
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
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
!KoelnerPhoneticCodeStringComparatorTest methodsFor:'running'!
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
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
    |code s|
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    24
    self skip:'this test does not really test anything (except if all 4-char string combinations can be soundexed)'.
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    25
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    26
    "/ compares all 4-char combinations against what?
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
    $A to:$Z do:[:c1 |
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    28
        $A to:$Z do:[:c2 |
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    29
            $A to:$Z do:[:c3 |
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    30
                $A to:$Z do:[:c4 |
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    31
                    s := String with:c1 with:c2 with:c3 with:c4.
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    32
                    code := (sc phoneticStringsFor:s) first.
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    33
                    self assert:( code = s asKoelnerPhoneticCode).
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    34
                ].
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    35
            ].
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    36
        ].
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
    ].
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    38
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    39
    "Created: / 28-07-2017 / 09:21:39 / cg"
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
!
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    42
test02_WellKnownResults
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    |code koeln|
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
    koeln := [:w | (sc phoneticStringsFor:w) first].
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
    code := (sc phoneticStringsFor:'Miller') first.
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    self assert:( code = 'Miller' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    #( 'Acton' 'Ashdown' 'Ashton' 'Astin' 'Aston' 'Austen' 'Austin' 'Austine' 'Axten')
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
    do:[:w |
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    52
        code := koeln value:(w).
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    53
        self assert:( code = (w asKoelnerPhoneticCode)).
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
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
    #( 'Reader' 'Reeder' 'Rider' 'Ritter' 'Rothera' 'Rothra' 'Ruder' 'Rutter' 'Ryder')
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    do:[:w |
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    58
        code := koeln value:(w).
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    59
        self assert:( code = (w asKoelnerPhoneticCode)).
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
    ].
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
    #( 'Wace' 'Waugh' 'Wookey')
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    do:[:w |
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    64
        code := koeln value:(w).
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
    65
        self assert:( code = (w asKoelnerPhoneticCode)).
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
    ].
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
    code := koeln value:('Abbot').
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    self assert:( code = 'Abbot' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    code := koeln value:('Abbots').
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
    self assert:( code = 'Abbots' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
    code := koeln value:('Ashcroft').
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
    self assert:( code = 'Ashcroft' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    code := koeln value:('Lloyd').
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
    self assert:( code = 'Lloyd' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
    code := koeln value:('Pfister').
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
    self assert:( code = 'Pfister' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
    self assert: ( koeln value:( 'A' )) = ('A' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
    self assert: ( koeln value:( 'B' )) = ('B' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
    self assert: ( koeln value:( 'C' )) = ('C' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
    self assert: ( koeln value:( 'D' )) = ('D' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
    self assert: ( koeln value:( 'E' )) = ('E' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
    self assert: ( koeln value:( 'F' )) = ('F' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
    self assert: ( koeln value:( 'G' )) = ('G' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
    self assert: ( koeln value:( 'H' )) = ('H' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
    self assert: ( koeln value:( 'I' )) = ('I' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
    self assert: ( koeln value:( 'J' )) = ('J' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
    self assert: ( koeln value:( 'K' )) = ('K' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
    self assert: ( koeln value:( 'L' )) = ('L' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
    self assert: ( koeln value:( 'M' )) = ('M' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
    self assert: ( koeln value:( 'N' )) = ('N' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
    self assert: ( koeln value:( 'O' )) = ('O' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
    self assert: ( koeln value:( 'P' )) = ('P' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    self assert: ( koeln value:( 'Q' )) = ('Q' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    self assert: ( koeln value:( 'R' )) = ('R' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
    self assert: ( koeln value:( 'S' )) = ('S' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
    self assert: ( koeln value:( 'T' )) = ('T' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
    self assert: ( koeln value:( 'U' )) = ('U' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
    self assert: ( koeln value:( 'V' )) = ('V' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
    self assert: ( koeln value:( 'W' )) = ('W' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
    self assert: ( koeln value:( 'X' )) = ('X' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
    self assert: ( koeln value:( 'Y' )) = ('Y' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
    self assert: ( koeln value:( 'Z' )) = ('Z' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    self assert: ( koeln value:( 'AEHIOW' )) = ('AEHIOW' asKoelnerPhoneticCode) .
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
    self assert: ( koeln value:( 'BPFV' )) = ('BPFV' asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
    self assert: ( koeln value:( 'CGJKQSXZ' )) = ('CGJKQSXZ'  asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
    self assert: ( koeln value:( 'DT' )) = ('DT'  asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    self assert: ( koeln value:( 'L' )) = ('L'  asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
    self assert: ( koeln value:( 'MN' )) = ('MN'  asKoelnerPhoneticCode).
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
    self assert: ( koeln value:( 'R' )) = ('R'  asKoelnerPhoneticCode).
1654
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   117
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   118
    "Created: / 28-07-2017 / 09:21:47 / cg"
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   119
!
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   120
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   121
test03_WellKnownResults
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   122
    |code|
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   123
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   124
    code := PhoneticStringUtilities koelnerPhoneticCodeOf:'Breschnew'.
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   125
    self assert:(code = '17863').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   126
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   127
    "/ these all sound similar - so they should get the same code
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   128
    #(
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   129
        'Breschnew'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   130
        'Breschneff'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   131
        'Braeschneff'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   132
        'Braessneff' 
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   133
        'Pressneff' 
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   134
        'Presznäph'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   135
        'Präschnäf'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   136
    ) do:[:each |
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   137
        self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:each) = '17863').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   138
    ].
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   139
        
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   140
    "/ these all sound similar - so they should get the same code
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   141
    #(
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   142
        'müller'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   143
        'möller'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   144
        'miller'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   145
        'muller' 
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   146
        'muler' 
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   147
    ) do:[:each |
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   148
        self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:each) = '657').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   149
    ].
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   150
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   151
    "/ these all sound similar - so they should get the same code
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
        'schmidt'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   154
        'schmid'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   155
        'schmit'
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   156
        'schmidtt' 
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   157
        'schmidd' 
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   158
    ) do:[:each |
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   159
        self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:each) = '862').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   160
    ].
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   161
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   162
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schneider') = '8627').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   163
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'sneider') = '8627').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   164
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'shneider') = '8627').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   165
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   166
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'fischer') = '387').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   167
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'weber') = '317').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   168
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'webber') = '317').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   169
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'weeber') = '317').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   170
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'wehber') = '317').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   171
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   172
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'meyer') = '67').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   173
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'mayer') = '67').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   174
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'meier') = '67').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   175
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'maier') = '67').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   176
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   177
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'wagner') = '3467').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   178
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'vagner') = '3467').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   179
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   180
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schulz') = '858').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   181
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schultz') = '858').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   182
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schults') = '858').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   183
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   184
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'becker') = '147').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   185
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'hoffmann') = '036').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   186
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'hofmann') = '036').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   187
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'hovmann') = '036').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   188
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'hovman') = '036').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   189
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schäfer') = '837').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   190
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schäffer') = '837').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   191
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schaeffer') = '837').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   192
    self assert:((PhoneticStringUtilities koelnerPhoneticCodeOf:'schaefer') = '837').
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   193
9091b358d049 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   194
    "Created: / 28-07-2017 / 09:36:16 / cg"
532
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
! !
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
!KoelnerPhoneticCodeStringComparatorTest class methodsFor:'documentation'!
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
version
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
    ^ '$Header$'
305a09f0d01d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
! !
896
bf7016d7ffd2 class: RegressionTests::KoelnerPhoneticCodeStringComparatorTest
Stefan Vogel <sv@exept.de>
parents: 540
diff changeset
   202