author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 30 Jun 2016 09:02:08 +0100 | |
branch | jv |
changeset 1500 | d406a10b2965 |
parent 1499 | 26a16a04219b |
parent 1447 | 2351db93aa5b |
child 1567 | e17701a073f9 |
permissions | -rw-r--r-- |
1447 | 1 |
"{ Package: 'stx:goodies/regression' }" |
527 | 2 |
|
543 | 3 |
"{ NameSpace: RegressionTests }" |
4 |
||
527 | 5 |
TestCase subclass:#DoubleMetaphoneStringComparatorTest |
6 |
instanceVariableNames:'dmsc' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
537 | 9 |
category:'tests-Regression' |
527 | 10 |
! |
11 |
||
12 |
DoubleMetaphoneStringComparatorTest comment:'Tests for the DoubleMetaphoneStringComparator class.' |
|
13 |
! |
|
14 |
||
15 |
||
16 |
!DoubleMetaphoneStringComparatorTest methodsFor:'running'! |
|
17 |
||
18 |
setUp |
|
19 |
||
1447 | 20 |
dmsc := PhoneticStringUtilities::DoubleMetaphoneStringComparator new |
527 | 21 |
! ! |
22 |
||
23 |
!DoubleMetaphoneStringComparatorTest methodsFor:'tests'! |
|
24 |
||
25 |
testKeyMidStringFrom |
|
26 |
dmsc inputKey: 'A string of characters'. |
|
27 |
||
28 |
self should: [ (dmsc keyMidString: 3 from: 0) = ' A ' ]. |
|
29 |
self should: [ (dmsc keyMidString: 5 from: 7) = 'NG OF' ]. |
|
30 |
self should: [ (dmsc keyMidString: 4 from: 21) = 'RS ' ]. |
|
31 |
! |
|
32 |
||
33 |
testPerformInitialProcessing1 |
|
34 |
dmsc inputKey: 'gneiss'. |
|
35 |
self should: [ dmsc inputKey = 'GNEISS' ]. |
|
36 |
||
37 |
self should: [ dmsc startIndex = 1 ]. |
|
38 |
self should: [ dmsc primaryTranslation = '' ]. |
|
39 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
40 |
self should: [ (dmsc inputKey at: dmsc startIndex) = $G ]. |
|
41 |
||
42 |
dmsc performInitialProcessing. |
|
43 |
||
44 |
self should: [ dmsc startIndex = 2 ]. |
|
45 |
self should: [ dmsc primaryTranslation = '' ]. |
|
46 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
47 |
self should: [ (dmsc inputKey at: dmsc startIndex) = $N ]. |
|
48 |
! |
|
49 |
||
50 |
testPerformInitialProcessing2 |
|
51 |
dmsc inputKey: 'zneiss'. |
|
52 |
self should: [ dmsc inputKey = 'ZNEISS' ]. |
|
53 |
||
54 |
self should: [ dmsc startIndex = 1 ]. |
|
55 |
self should: [ dmsc primaryTranslation = '' ]. |
|
56 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
57 |
self should: [ (dmsc inputKey at: dmsc startIndex) = $Z ]. |
|
58 |
||
59 |
dmsc performInitialProcessing. |
|
60 |
||
61 |
self should: [ dmsc startIndex = 1 ]. |
|
62 |
self should: [ dmsc primaryTranslation = '' ]. |
|
63 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
64 |
self should: [ (dmsc inputKey at: dmsc startIndex) = $Z ]. |
|
65 |
! |
|
66 |
||
67 |
testPerformInitialProcessing3 |
|
68 |
dmsc inputKey: 'xAvIeR'. |
|
69 |
self should: [ dmsc inputKey = 'XAVIER' ]. |
|
70 |
||
71 |
self should: [ dmsc startIndex = 1 ]. |
|
72 |
self should: [ dmsc primaryTranslation = '' ]. |
|
73 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
74 |
self should: [ (dmsc inputKey at: dmsc startIndex) = $X ]. |
|
75 |
||
76 |
dmsc performInitialProcessing. |
|
77 |
||
78 |
self should: [ dmsc startIndex = 2 ]. |
|
79 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
80 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
81 |
self should: [ (dmsc inputKey at: dmsc startIndex) = $A ]. |
|
82 |
! |
|
83 |
||
84 |
testPerformInitialProcessing4 |
|
85 |
dmsc inputKey: 'etaoinshrdlu'. |
|
86 |
self should: [ dmsc inputKey = 'ETAOINSHRDLU' ]. |
|
87 |
||
88 |
self should: [ dmsc startIndex = 1 ]. |
|
89 |
self should: [ dmsc primaryTranslation = '' ]. |
|
90 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
91 |
self should: [ (dmsc inputKey at: dmsc startIndex) = $E ]. |
|
92 |
||
93 |
dmsc performInitialProcessing. |
|
94 |
||
95 |
self should: [ dmsc startIndex = 2 ]. |
|
96 |
self should: [ dmsc primaryTranslation = 'A' ]. |
|
97 |
self should: [ dmsc secondaryTranslation = 'A' ]. |
|
98 |
self should: [ (dmsc inputKey at: dmsc startIndex) = $T ]. |
|
99 |
! |
|
100 |
||
101 |
testProcessB1 |
|
1447 | 102 |
dmsc inputKey: 'b'. |
103 |
self should: [ dmsc inputKey = 'B' ]. |
|
104 |
||
105 |
self should: [ dmsc primaryTranslation = '' ]. |
|
106 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
107 |
self should: [ dmsc skipCount = 0 ]. |
|
108 |
||
109 |
dmsc processB. |
|
110 |
||
111 |
self should: [ dmsc primaryTranslation = 'P' ]. |
|
112 |
self should: [ dmsc secondaryTranslation = 'P' ]. |
|
113 |
self should: [ dmsc skipCount = 0 ] |
|
527 | 114 |
! |
115 |
||
116 |
testProcessB2 |
|
117 |
dmsc inputKey: 'bb'. |
|
118 |
self should: [ dmsc inputKey = 'BB' ]. |
|
119 |
||
120 |
self should: [ dmsc primaryTranslation = '' ]. |
|
121 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
122 |
self should: [ dmsc skipCount = 0 ]. |
|
123 |
||
124 |
dmsc processB. |
|
125 |
||
126 |
self should: [ dmsc primaryTranslation = 'P' ]. |
|
127 |
self should: [ dmsc secondaryTranslation = 'P' ]. |
|
128 |
self should: [ dmsc skipCount = 1 ] |
|
129 |
! |
|
130 |
||
131 |
testProcessCedille |
|
1499
26a16a04219b
Package renamed from exept:regression to stx:goodies/regression. Hooray!
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
543
diff
changeset
|
132 |
dmsc inputKey: ''. |
26a16a04219b
Package renamed from exept:regression to stx:goodies/regression. Hooray!
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
543
diff
changeset
|
133 |
self should: [ dmsc inputKey = '' ]. |
527 | 134 |
|
135 |
self should: [ dmsc primaryTranslation = '' ]. |
|
136 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
137 |
||
138 |
dmsc processCedille. |
|
139 |
||
140 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
141 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
142 |
! |
|
143 |
||
144 |
testProcessCi1 |
|
145 |
dmsc inputKey: 'zzachxx'. |
|
146 |
self should: [ dmsc inputKey = 'ZZACHXX' ]. |
|
147 |
||
148 |
self should: [ dmsc primaryTranslation = '' ]. |
|
149 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
150 |
self should: [ dmsc skipCount = 0 ]. |
|
151 |
dmsc currentIndex: 4. |
|
152 |
||
153 |
dmsc processC. |
|
154 |
||
155 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
156 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
157 |
self should: [ dmsc skipCount = 2 ] |
|
158 |
! |
|
159 |
||
160 |
testProcessCii1 |
|
161 |
dmsc inputKey: 'caesarian'. |
|
162 |
self should: [ dmsc inputKey = 'CAESARIAN' ]. |
|
163 |
||
164 |
self should: [ dmsc primaryTranslation = '' ]. |
|
165 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
166 |
self should: [ dmsc skipCount = 0 ]. |
|
167 |
self should: [ dmsc currentIndex = 1 ]. |
|
168 |
||
169 |
dmsc processC. |
|
170 |
||
171 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
172 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
173 |
self should: [ dmsc skipCount = 1 ] |
|
174 |
! |
|
175 |
||
176 |
testProcessCiii1 |
|
177 |
dmsc inputKey: 'chianti'. |
|
178 |
self should: [ dmsc inputKey = 'CHIANTI' ]. |
|
179 |
||
180 |
self should: [ dmsc primaryTranslation = '' ]. |
|
181 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
182 |
self should: [ dmsc skipCount = 0 ]. |
|
183 |
self should: [ dmsc currentIndex = 1 ]. |
|
184 |
||
185 |
dmsc processC. |
|
186 |
||
187 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
188 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
189 |
self should: [ dmsc skipCount = 1 ] |
|
190 |
! |
|
191 |
||
192 |
testProcessCiva1 |
|
193 |
dmsc inputKey: 'michael'. |
|
194 |
self should: [ dmsc inputKey = 'MICHAEL' ]. |
|
195 |
||
196 |
self should: [ dmsc primaryTranslation = '' ]. |
|
197 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
198 |
self should: [ dmsc skipCount = 0 ]. |
|
199 |
dmsc currentIndex: 3. |
|
200 |
||
201 |
dmsc processC. |
|
202 |
||
203 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
204 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
205 |
self should: [ dmsc skipCount = 1 ] |
|
206 |
! |
|
207 |
||
208 |
testProcessCivb1 |
|
209 |
dmsc inputKey: 'character'. |
|
210 |
self should: [ dmsc inputKey = 'CHARACTER' ]. |
|
211 |
||
212 |
self should: [ dmsc primaryTranslation = '' ]. |
|
213 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
214 |
self should: [ dmsc skipCount = 0 ]. |
|
215 |
self should: [ dmsc currentIndex = 1 ]. |
|
216 |
||
217 |
dmsc processC. |
|
218 |
||
219 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
220 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
221 |
self should: [ dmsc skipCount = 1 ] |
|
222 |
! |
|
223 |
||
224 |
testProcessCivb2 |
|
225 |
dmsc inputKey: 'chymerae'. |
|
226 |
self should: [ dmsc inputKey = 'CHYMERAE' ]. |
|
227 |
||
228 |
self should: [ dmsc primaryTranslation = '' ]. |
|
229 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
230 |
self should: [ dmsc skipCount = 0 ]. |
|
231 |
self should: [ dmsc currentIndex = 1 ]. |
|
232 |
||
233 |
dmsc processC. |
|
234 |
||
235 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
236 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
237 |
self should: [ dmsc skipCount = 1 ] |
|
238 |
! |
|
239 |
||
240 |
testProcessCivc1 |
|
241 |
dmsc inputKey: 'chymerae'. |
|
242 |
self should: [ dmsc inputKey = 'CHYMERAE' ]. |
|
243 |
||
244 |
self should: [ dmsc primaryTranslation = '' ]. |
|
245 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
246 |
self should: [ dmsc skipCount = 0 ]. |
|
247 |
self should: [ dmsc currentIndex = 1 ]. |
|
248 |
||
249 |
dmsc processC. |
|
250 |
||
251 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
252 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
253 |
self should: [ dmsc skipCount = 1 ] |
|
254 |
! |
|
255 |
||
256 |
testProcessCivc2 |
|
257 |
dmsc inputKey: 'orchestral'. |
|
258 |
self should: [ dmsc inputKey = 'ORCHESTRAL' ]. |
|
259 |
||
260 |
self should: [ dmsc primaryTranslation = '' ]. |
|
261 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
262 |
self should: [ dmsc skipCount = 0 ]. |
|
263 |
dmsc currentIndex: 3. |
|
264 |
||
265 |
dmsc processC. |
|
266 |
||
267 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
268 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
269 |
self should: [ dmsc skipCount = 1 ] |
|
270 |
! |
|
271 |
||
272 |
testProcessCivc3 |
|
273 |
dmsc inputKey: 'mchugh'. |
|
274 |
self should: [ dmsc inputKey = 'MCHUGH' ]. |
|
275 |
||
276 |
self should: [ dmsc primaryTranslation = '' ]. |
|
277 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
278 |
self should: [ dmsc skipCount = 0 ]. |
|
279 |
dmsc currentIndex: 2. |
|
280 |
||
281 |
dmsc processC. |
|
282 |
||
283 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
284 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
285 |
self should: [ dmsc skipCount = 1 ] |
|
286 |
! |
|
287 |
||
288 |
testProcessCivc4 |
|
289 |
dmsc inputKey: 'xchugh'. |
|
290 |
self should: [ dmsc inputKey = 'XCHUGH' ]. |
|
291 |
||
292 |
self should: [ dmsc primaryTranslation = '' ]. |
|
293 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
294 |
self should: [ dmsc skipCount = 0 ]. |
|
295 |
dmsc currentIndex: 2. |
|
296 |
||
297 |
dmsc processC. |
|
298 |
||
299 |
self should: [ dmsc primaryTranslation = 'X' ]. |
|
300 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
301 |
self should: [ dmsc skipCount = 1 ] |
|
302 |
! |
|
303 |
||
304 |
testProcessCivc5 |
|
305 |
dmsc inputKey: 'chugh'. |
|
306 |
self should: [ dmsc inputKey = 'CHUGH' ]. |
|
307 |
||
308 |
self should: [ dmsc primaryTranslation = '' ]. |
|
309 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
310 |
self should: [ dmsc skipCount = 0 ]. |
|
311 |
dmsc currentIndex: 1. |
|
312 |
||
313 |
dmsc processC. |
|
314 |
||
315 |
self should: [ dmsc primaryTranslation = 'X' ]. |
|
316 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
317 |
self should: [ dmsc skipCount = 1 ] |
|
318 |
! |
|
319 |
||
320 |
testProcessCix1 |
|
321 |
dmsc inputKey: 'macgregor'. |
|
322 |
self should: [ dmsc inputKey = 'MACGREGOR' ]. |
|
323 |
||
324 |
self should: [ dmsc primaryTranslation = '' ]. |
|
325 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
326 |
self should: [ dmsc skipCount = 0 ]. |
|
327 |
dmsc currentIndex: 3. |
|
328 |
||
329 |
dmsc processC. |
|
330 |
||
331 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
332 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
333 |
self should: [ dmsc skipCount = 1 ] |
|
334 |
! |
|
335 |
||
336 |
testProcessCix2 |
|
337 |
dmsc inputKey: 'zzzzcizzz'. |
|
338 |
self should: [ dmsc inputKey = 'ZZZZCIZZZ' ]. |
|
339 |
||
340 |
self should: [ dmsc primaryTranslation = '' ]. |
|
341 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
342 |
self should: [ dmsc skipCount = 0 ]. |
|
343 |
dmsc currentIndex: 5. |
|
344 |
||
345 |
dmsc processC. |
|
346 |
||
347 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
348 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
349 |
self should: [ dmsc skipCount = 1 ] |
|
350 |
! |
|
351 |
||
352 |
testProcessCv1 |
|
353 |
dmsc inputKey: 'czarina'. |
|
354 |
self should: [ dmsc inputKey = 'CZARINA' ]. |
|
355 |
||
356 |
self should: [ dmsc primaryTranslation = '' ]. |
|
357 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
358 |
self should: [ dmsc skipCount = 0 ]. |
|
359 |
dmsc currentIndex: 1. |
|
360 |
||
361 |
dmsc processC. |
|
362 |
||
363 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
364 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
365 |
self should: [ dmsc skipCount = 1 ] |
|
366 |
! |
|
367 |
||
368 |
testProcessCvi1 |
|
369 |
dmsc inputKey: 'focaccia'. |
|
370 |
self should: [ dmsc inputKey = 'FOCACCIA' ]. |
|
371 |
||
372 |
self should: [ dmsc primaryTranslation = '' ]. |
|
373 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
374 |
self should: [ dmsc skipCount = 0 ]. |
|
375 |
dmsc currentIndex: 5. |
|
376 |
||
377 |
dmsc processC. |
|
378 |
||
379 |
self should: [ dmsc primaryTranslation = 'X' ]. |
|
380 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
381 |
self should: [ dmsc skipCount = 2 ] |
|
382 |
! |
|
383 |
||
384 |
testProcessCvii11 |
|
385 |
dmsc inputKey: 'accept'. |
|
386 |
self should: [ dmsc inputKey = 'ACCEPT' ]. |
|
387 |
||
388 |
self should: [ dmsc primaryTranslation = '' ]. |
|
389 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
390 |
self should: [ dmsc skipCount = 0 ]. |
|
391 |
dmsc currentIndex: 2. |
|
392 |
||
393 |
dmsc processC. |
|
394 |
||
395 |
self should: [ dmsc primaryTranslation = 'KS' ]. |
|
396 |
self should: [ dmsc secondaryTranslation = 'KS' ]. |
|
397 |
self should: [ dmsc skipCount = 2 ] |
|
398 |
! |
|
399 |
||
400 |
testProcessCvii12 |
|
401 |
dmsc inputKey: 'succeed'. |
|
402 |
self should: [ dmsc inputKey = 'SUCCEED' ]. |
|
403 |
||
404 |
self should: [ dmsc primaryTranslation = '' ]. |
|
405 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
406 |
self should: [ dmsc skipCount = 0 ]. |
|
407 |
dmsc currentIndex: 3. |
|
408 |
||
409 |
dmsc processC. |
|
410 |
||
411 |
self should: [ dmsc primaryTranslation = 'KS' ]. |
|
412 |
self should: [ dmsc secondaryTranslation = 'KS' ]. |
|
413 |
self should: [ dmsc skipCount = 2 ] |
|
414 |
! |
|
415 |
||
416 |
testProcessCvii2 |
|
417 |
dmsc inputKey: 'accord'. |
|
418 |
self should: [ dmsc inputKey = 'ACCORD' ]. |
|
419 |
||
420 |
self should: [ dmsc primaryTranslation = '' ]. |
|
421 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
422 |
self should: [ dmsc skipCount = 0 ]. |
|
423 |
dmsc currentIndex: 2. |
|
424 |
||
425 |
dmsc processC. |
|
426 |
||
427 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
428 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
429 |
self should: [ dmsc skipCount = 2 ] |
|
430 |
! |
|
431 |
||
432 |
testProcessCviii1 |
|
433 |
dmsc inputKey: 'trucking'. |
|
434 |
self should: [ dmsc inputKey = 'TRUCKING' ]. |
|
435 |
||
436 |
self should: [ dmsc primaryTranslation = '' ]. |
|
437 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
438 |
self should: [ dmsc skipCount = 0 ]. |
|
439 |
dmsc currentIndex: 4. |
|
440 |
||
441 |
dmsc processC. |
|
442 |
||
443 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
444 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
445 |
self should: [ dmsc skipCount = 1 ] |
|
446 |
! |
|
447 |
||
448 |
testProcessCviii2 |
|
449 |
dmsc inputKey: 'acquire'. |
|
450 |
self should: [ dmsc inputKey = 'ACQUIRE' ]. |
|
451 |
||
452 |
self should: [ dmsc primaryTranslation = '' ]. |
|
453 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
454 |
self should: [ dmsc skipCount = 0 ]. |
|
455 |
dmsc currentIndex: 2. |
|
456 |
||
457 |
dmsc processC. |
|
458 |
||
459 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
460 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
461 |
self should: [ dmsc skipCount = 1 ] |
|
462 |
! |
|
463 |
||
464 |
testProcessCviii3 |
|
465 |
dmsc inputKey: 'macgregor'. |
|
466 |
self should: [ dmsc inputKey = 'MACGREGOR' ]. |
|
467 |
||
468 |
self should: [ dmsc primaryTranslation = '' ]. |
|
469 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
470 |
self should: [ dmsc skipCount = 0 ]. |
|
471 |
dmsc currentIndex: 3. |
|
472 |
||
473 |
dmsc processC. |
|
474 |
||
475 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
476 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
477 |
self should: [ dmsc skipCount = 1 ] |
|
478 |
! |
|
479 |
||
480 |
testProcessCx1 |
|
481 |
dmsc inputKey: 'abcdefg'. |
|
482 |
self should: [ dmsc inputKey = 'ABCDEFG' ]. |
|
483 |
||
484 |
self should: [ dmsc primaryTranslation = '' ]. |
|
485 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
486 |
self should: [ dmsc skipCount = 0 ]. |
|
487 |
dmsc currentIndex: 3. |
|
488 |
||
489 |
dmsc processC. |
|
490 |
||
491 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
492 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
493 |
self should: [ dmsc skipCount = 0 ] |
|
494 |
! |
|
495 |
||
496 |
testProcessCx1a |
|
497 |
dmsc inputKey: 'abcdefg'. |
|
498 |
self should: [ dmsc inputKey = 'ABCDEFG' ]. |
|
499 |
||
500 |
self should: [ dmsc primaryTranslation = '' ]. |
|
501 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
502 |
self should: [ dmsc skipCount = 0 ]. |
|
503 |
dmsc currentIndex: 3. |
|
504 |
||
505 |
dmsc processC. |
|
506 |
||
507 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
508 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
509 |
self should: [ dmsc skipCount = 0 ] |
|
510 |
! |
|
511 |
||
512 |
testProcessD1 |
|
513 |
dmsc inputKey: 'edge'. |
|
514 |
self should: [ dmsc inputKey = 'EDGE' ]. |
|
515 |
||
516 |
self should: [ dmsc primaryTranslation = '' ]. |
|
517 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
518 |
self should: [ dmsc skipCount = 0 ]. |
|
519 |
dmsc currentIndex: 2. |
|
520 |
||
521 |
dmsc processD. |
|
522 |
||
523 |
self should: [ dmsc primaryTranslation = 'J' ]. |
|
524 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
525 |
self should: [ dmsc skipCount = 2 ]. |
|
526 |
! |
|
527 |
||
528 |
testProcessD2 |
|
529 |
dmsc inputKey: 'edgar'. |
|
530 |
self should: [ dmsc inputKey = 'EDGAR' ]. |
|
531 |
||
532 |
self should: [ dmsc primaryTranslation = '' ]. |
|
533 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
534 |
self should: [ dmsc skipCount = 0 ]. |
|
535 |
dmsc currentIndex: 2. |
|
536 |
||
537 |
dmsc processD. |
|
538 |
||
539 |
self should: [ dmsc primaryTranslation = 'TK' ]. |
|
540 |
self should: [ dmsc secondaryTranslation = 'TK' ]. |
|
541 |
self should: [ dmsc skipCount = 1 ]. |
|
542 |
! |
|
543 |
||
544 |
testProcessD3 |
|
545 |
dmsc inputKey: 'ludt'. |
|
546 |
self should: [ dmsc inputKey = 'LUDT' ]. |
|
547 |
||
548 |
self should: [ dmsc primaryTranslation = '' ]. |
|
549 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
550 |
self should: [ dmsc skipCount = 0 ]. |
|
551 |
dmsc currentIndex: 3. |
|
552 |
||
553 |
dmsc processD. |
|
554 |
||
555 |
self should: [ dmsc primaryTranslation = 'T' ]. |
|
556 |
self should: [ dmsc secondaryTranslation = 'T' ]. |
|
557 |
self should: [ dmsc skipCount = 1 ]. |
|
558 |
! |
|
559 |
||
560 |
testProcessD4 |
|
561 |
dmsc inputKey: 'lud'. |
|
562 |
self should: [ dmsc inputKey = 'LUD' ]. |
|
563 |
||
564 |
self should: [ dmsc primaryTranslation = '' ]. |
|
565 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
566 |
self should: [ dmsc skipCount = 0 ]. |
|
567 |
dmsc currentIndex: 3. |
|
568 |
||
569 |
dmsc processD. |
|
570 |
||
571 |
self should: [ dmsc primaryTranslation = 'T' ]. |
|
572 |
self should: [ dmsc secondaryTranslation = 'T' ]. |
|
573 |
self should: [ dmsc skipCount = 0 ]. |
|
574 |
! |
|
575 |
||
576 |
testProcessF1 |
|
577 |
||
578 |
dmsc inputKey: 'felt'. |
|
579 |
self should: [ dmsc inputKey = 'FELT' ]. |
|
580 |
||
581 |
self should: [ dmsc primaryTranslation = '' ]. |
|
582 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
583 |
self should: [ dmsc skipCount = 0 ]. |
|
584 |
dmsc currentIndex: 1. |
|
585 |
||
586 |
dmsc processF. |
|
587 |
||
588 |
self should: [ dmsc primaryTranslation = 'F' ]. |
|
589 |
self should: [ dmsc secondaryTranslation = 'F' ]. |
|
590 |
self should: [ dmsc skipCount = 0 ]. |
|
591 |
! |
|
592 |
||
593 |
testProcessF2 |
|
594 |
dmsc inputKey: 'affenpinscher'. |
|
595 |
self should: [ dmsc inputKey = 'AFFENPINSCHER' ]. |
|
596 |
||
597 |
self should: [ dmsc primaryTranslation = '' ]. |
|
598 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
599 |
self should: [ dmsc skipCount = 0 ]. |
|
600 |
dmsc currentIndex: 2. |
|
601 |
||
602 |
dmsc processF. |
|
603 |
||
604 |
self should: [ dmsc primaryTranslation = 'F' ]. |
|
605 |
self should: [ dmsc secondaryTranslation = 'F' ]. |
|
606 |
self should: [ dmsc skipCount = 1 ]. |
|
607 |
! |
|
608 |
||
609 |
testProcessG |
|
610 |
dmsc inputKey: 'bgh'. |
|
611 |
self should: [ dmsc inputKey = 'BGH' ]. |
|
612 |
||
613 |
self should: [ dmsc primaryTranslation = '' ]. |
|
614 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
615 |
self should: [ dmsc skipCount = 0 ]. |
|
616 |
dmsc currentIndex: 2. |
|
617 |
||
618 |
dmsc processG. |
|
619 |
||
620 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
621 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
622 |
self should: [ dmsc skipCount = 1 ]. |
|
623 |
! |
|
624 |
||
625 |
testProcessG1 |
|
626 |
dmsc inputKey: 'ghi'. |
|
627 |
self should: [ dmsc inputKey = 'GHI' ]. |
|
628 |
||
629 |
self should: [ dmsc primaryTranslation = '' ]. |
|
630 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
631 |
self should: [ dmsc skipCount = 0 ]. |
|
632 |
dmsc currentIndex: 1. |
|
633 |
||
634 |
dmsc processG. |
|
635 |
||
636 |
self should: [ dmsc primaryTranslation = 'J' ]. |
|
637 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
638 |
self should: [ dmsc skipCount = 1 ]. |
|
639 |
! |
|
640 |
||
641 |
testProcessG2 |
|
642 |
dmsc inputKey: 'ghr'. |
|
643 |
self should: [ dmsc inputKey = 'GHR' ]. |
|
644 |
||
645 |
self should: [ dmsc primaryTranslation = '' ]. |
|
646 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
647 |
self should: [ dmsc skipCount = 0 ]. |
|
648 |
dmsc currentIndex: 1. |
|
649 |
||
650 |
dmsc processG. |
|
651 |
||
652 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
653 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
654 |
self should: [ dmsc skipCount = 1 ]. |
|
655 |
! |
|
656 |
||
657 |
testProcessG3 |
|
658 |
dmsc inputKey: 'hugh'. |
|
659 |
self should: [ dmsc inputKey = 'HUGH' ]. |
|
660 |
||
661 |
self should: [ dmsc primaryTranslation = '' ]. |
|
662 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
663 |
self should: [ dmsc skipCount = 0 ]. |
|
664 |
dmsc currentIndex: 3. |
|
665 |
||
666 |
dmsc processG. |
|
667 |
||
668 |
self should: [ dmsc primaryTranslation = '' ]. |
|
669 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
670 |
self should: [ dmsc skipCount = 1 ]. |
|
671 |
! |
|
672 |
||
673 |
testProcessG4 |
|
674 |
dmsc inputKey: 'bough'. |
|
675 |
self should: [ dmsc inputKey = 'BOUGH' ]. |
|
676 |
||
677 |
self should: [ dmsc primaryTranslation = '' ]. |
|
678 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
679 |
self should: [ dmsc skipCount = 0 ]. |
|
680 |
dmsc currentIndex: 4. |
|
681 |
||
682 |
dmsc processG. |
|
683 |
||
684 |
self should: [ dmsc primaryTranslation = '' ]. |
|
685 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
686 |
self should: [ dmsc skipCount = 1 ]. |
|
687 |
! |
|
688 |
||
689 |
testProcessG5 |
|
690 |
dmsc inputKey: 'laugh'. |
|
691 |
self should: [ dmsc inputKey = 'LAUGH' ]. |
|
692 |
||
693 |
self should: [ dmsc primaryTranslation = '' ]. |
|
694 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
695 |
self should: [ dmsc skipCount = 0 ]. |
|
696 |
dmsc currentIndex: 4. |
|
697 |
||
698 |
dmsc processG. |
|
699 |
||
700 |
self should: [ dmsc primaryTranslation = 'F' ]. |
|
701 |
self should: [ dmsc secondaryTranslation = 'F' ]. |
|
702 |
self should: [ dmsc skipCount = 1 ]. |
|
703 |
! |
|
704 |
||
705 |
testProcessG6 |
|
706 |
dmsc inputKey: 'McLaughlin'. |
|
707 |
self should: [ dmsc inputKey = 'MCLAUGHLIN' ]. |
|
708 |
||
709 |
self should: [ dmsc primaryTranslation = '' ]. |
|
710 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
711 |
self should: [ dmsc skipCount = 0 ]. |
|
712 |
dmsc currentIndex: 6. |
|
713 |
||
714 |
dmsc processG. |
|
715 |
||
716 |
self should: [ dmsc primaryTranslation = 'F' ]. |
|
717 |
self should: [ dmsc secondaryTranslation = 'F' ]. |
|
718 |
self should: [ dmsc skipCount = 1 ]. |
|
719 |
! |
|
720 |
||
721 |
testProcessG7 |
|
722 |
dmsc inputKey: 'cough'. |
|
723 |
self should: [ dmsc inputKey = 'COUGH' ]. |
|
724 |
||
725 |
self should: [ dmsc primaryTranslation = '' ]. |
|
726 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
727 |
self should: [ dmsc skipCount = 0 ]. |
|
728 |
dmsc currentIndex: 4. |
|
729 |
||
730 |
dmsc processG. |
|
731 |
||
732 |
self should: [ dmsc primaryTranslation = 'F' ]. |
|
733 |
self should: [ dmsc secondaryTranslation = 'F' ]. |
|
734 |
self should: [ dmsc skipCount = 1 ]. |
|
735 |
! |
|
736 |
||
737 |
testProcessG8 |
|
738 |
dmsc inputKey: 'langh'. |
|
739 |
self should: [ dmsc inputKey = 'LANGH' ]. |
|
740 |
||
741 |
self should: [ dmsc primaryTranslation = '' ]. |
|
742 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
743 |
self should: [ dmsc skipCount = 0 ]. |
|
744 |
dmsc currentIndex: 4. |
|
745 |
||
746 |
dmsc processG. |
|
747 |
||
748 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
749 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
750 |
self should: [ dmsc skipCount = 1 ]. |
|
751 |
! |
|
752 |
||
753 |
testProcessG9 |
|
754 |
dmsc inputKey: 'agneiss'. |
|
755 |
self should: [ dmsc inputKey = 'AGNEISS' ]. |
|
756 |
||
757 |
self should: [ dmsc primaryTranslation = '' ]. |
|
758 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
759 |
self should: [ dmsc skipCount = 0 ]. |
|
760 |
dmsc currentIndex: 2. |
|
761 |
||
762 |
dmsc processG. |
|
763 |
||
764 |
self should: [ dmsc primaryTranslation = 'KN' ]. |
|
765 |
self should: [ dmsc secondaryTranslation = 'N' ]. |
|
766 |
self should: [ dmsc skipCount = 1 ]. |
|
767 |
! |
|
768 |
||
769 |
testProcessGa1 |
|
770 |
dmsc inputKey: 'nignd'. |
|
771 |
self should: [ dmsc inputKey = 'NIGND' ]. |
|
772 |
||
773 |
self should: [ dmsc primaryTranslation = '' ]. |
|
774 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
775 |
self should: [ dmsc skipCount = 0 ]. |
|
776 |
dmsc currentIndex: 3. |
|
777 |
||
778 |
dmsc processG. |
|
779 |
||
780 |
self should: [ dmsc primaryTranslation = 'N' ]. |
|
781 |
self should: [ dmsc secondaryTranslation = 'KN' ]. |
|
782 |
self should: [ dmsc skipCount = 1 ]. |
|
783 |
! |
|
784 |
||
785 |
testProcessGa2 |
|
786 |
dmsc inputKey: 'cagney'. |
|
787 |
self should: [ dmsc inputKey = 'CAGNEY' ]. |
|
788 |
||
789 |
self should: [ dmsc primaryTranslation = '' ]. |
|
790 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
791 |
self should: [ dmsc skipCount = 0 ]. |
|
792 |
dmsc currentIndex: 3. |
|
793 |
||
794 |
dmsc processG. |
|
795 |
||
796 |
self should: [ dmsc primaryTranslation = 'KN' ]. |
|
797 |
self should: [ dmsc secondaryTranslation = 'KN' ]. |
|
798 |
self should: [ dmsc skipCount = 1 ]. |
|
799 |
! |
|
800 |
||
801 |
testProcessGa3 |
|
802 |
dmsc inputKey: 'tagliaro'. |
|
803 |
self should: [ dmsc inputKey = 'TAGLIARO' ]. |
|
804 |
||
805 |
self should: [ dmsc primaryTranslation = '' ]. |
|
806 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
807 |
self should: [ dmsc skipCount = 0 ]. |
|
808 |
dmsc currentIndex: 3. |
|
809 |
||
810 |
dmsc processG. |
|
811 |
||
812 |
self should: [ dmsc primaryTranslation = 'KL' ]. |
|
813 |
self should: [ dmsc secondaryTranslation = 'L' ]. |
|
814 |
self should: [ dmsc skipCount = 1 ]. |
|
815 |
! |
|
816 |
||
817 |
testProcessGa4 |
|
818 |
dmsc inputKey: 'GY'. |
|
819 |
self should: [ dmsc inputKey = 'GY' ]. |
|
820 |
||
821 |
self should: [ dmsc primaryTranslation = '' ]. |
|
822 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
823 |
self should: [ dmsc skipCount = 0 ]. |
|
824 |
dmsc currentIndex: 1. |
|
825 |
||
826 |
dmsc processG. |
|
827 |
||
828 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
829 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
830 |
self should: [ dmsc skipCount = 1 ]. |
|
831 |
! |
|
832 |
||
833 |
testProcessGa5 |
|
834 |
dmsc inputKey: 'GES'. |
|
835 |
self should: [ dmsc inputKey = 'GES' ]. |
|
836 |
||
837 |
self should: [ dmsc primaryTranslation = '' ]. |
|
838 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
839 |
self should: [ dmsc skipCount = 0 ]. |
|
840 |
dmsc currentIndex: 1. |
|
841 |
||
842 |
dmsc processG. |
|
843 |
||
844 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
845 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
846 |
self should: [ dmsc skipCount = 1 ]. |
|
847 |
! |
|
848 |
||
849 |
testProcessGa6 |
|
850 |
dmsc inputKey: 'GEP'. |
|
851 |
self should: [ dmsc inputKey = 'GEP' ]. |
|
852 |
||
853 |
self should: [ dmsc primaryTranslation = '' ]. |
|
854 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
855 |
self should: [ dmsc skipCount = 0 ]. |
|
856 |
dmsc currentIndex: 1. |
|
857 |
||
858 |
dmsc processG. |
|
859 |
||
860 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
861 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
862 |
self should: [ dmsc skipCount = 1 ]. |
|
863 |
! |
|
864 |
||
865 |
testProcessGa7 |
|
866 |
dmsc inputKey: 'GEB'. |
|
867 |
self should: [ dmsc inputKey = 'GEB' ]. |
|
868 |
||
869 |
self should: [ dmsc primaryTranslation = '' ]. |
|
870 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
871 |
self should: [ dmsc skipCount = 0 ]. |
|
872 |
dmsc currentIndex: 1. |
|
873 |
||
874 |
dmsc processG. |
|
875 |
||
876 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
877 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
878 |
self should: [ dmsc skipCount = 1 ]. |
|
879 |
! |
|
880 |
||
881 |
testProcessGa8 |
|
882 |
dmsc inputKey: 'GEL'. |
|
883 |
self should: [ dmsc inputKey = 'GEL' ]. |
|
884 |
||
885 |
self should: [ dmsc primaryTranslation = '' ]. |
|
886 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
887 |
self should: [ dmsc skipCount = 0 ]. |
|
888 |
dmsc currentIndex: 1. |
|
889 |
||
890 |
dmsc processG. |
|
891 |
||
892 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
893 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
894 |
self should: [ dmsc skipCount = 1 ]. |
|
895 |
! |
|
896 |
||
897 |
testProcessGa9 |
|
898 |
dmsc inputKey: 'GEY'. |
|
899 |
self should: [ dmsc inputKey = 'GEY' ]. |
|
900 |
||
901 |
self should: [ dmsc primaryTranslation = '' ]. |
|
902 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
903 |
self should: [ dmsc skipCount = 0 ]. |
|
904 |
dmsc currentIndex: 1. |
|
905 |
||
906 |
dmsc processG. |
|
907 |
||
908 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
909 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
910 |
self should: [ dmsc skipCount = 1 ]. |
|
911 |
! |
|
912 |
||
913 |
testProcessGb2 |
|
914 |
dmsc inputKey: 'gil'. |
|
915 |
self should: [ dmsc inputKey = 'GIL' ]. |
|
916 |
||
917 |
self should: [ dmsc primaryTranslation = '' ]. |
|
918 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
919 |
self should: [ dmsc skipCount = 0 ]. |
|
920 |
dmsc currentIndex: 1. |
|
921 |
||
922 |
dmsc processG. |
|
923 |
||
924 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
925 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
926 |
self should: [ dmsc skipCount = 1 ]. |
|
927 |
! |
|
928 |
||
929 |
testProcessGb3 |
|
930 |
dmsc inputKey: 'gin'. |
|
931 |
self should: [ dmsc inputKey = 'GIN' ]. |
|
932 |
||
933 |
self should: [ dmsc primaryTranslation = '' ]. |
|
934 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
935 |
self should: [ dmsc skipCount = 0 ]. |
|
936 |
dmsc currentIndex: 1. |
|
937 |
||
938 |
dmsc processG. |
|
939 |
||
940 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
941 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
942 |
self should: [ dmsc skipCount = 1 ]. |
|
943 |
! |
|
944 |
||
945 |
testProcessGb4 |
|
946 |
dmsc inputKey: 'gei'. |
|
947 |
self should: [ dmsc inputKey = 'GEI' ]. |
|
948 |
||
949 |
self should: [ dmsc primaryTranslation = '' ]. |
|
950 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
951 |
self should: [ dmsc skipCount = 0 ]. |
|
952 |
dmsc currentIndex: 1. |
|
953 |
||
954 |
dmsc processG. |
|
955 |
||
956 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
957 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
958 |
self should: [ dmsc skipCount = 1 ]. |
|
959 |
! |
|
960 |
||
961 |
testProcessGb4a |
|
962 |
dmsc inputKey: 'gie'. |
|
963 |
self should: [ dmsc inputKey = 'GIE' ]. |
|
964 |
||
965 |
self should: [ dmsc primaryTranslation = '' ]. |
|
966 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
967 |
self should: [ dmsc skipCount = 0 ]. |
|
968 |
dmsc currentIndex: 1. |
|
969 |
||
970 |
dmsc processG. |
|
971 |
||
972 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
973 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
974 |
self should: [ dmsc skipCount = 1 ]. |
|
975 |
! |
|
976 |
||
977 |
testProcessGb5 |
|
978 |
dmsc inputKey: 'ger'. |
|
979 |
self should: [ dmsc inputKey = 'GER' ]. |
|
980 |
||
981 |
self should: [ dmsc primaryTranslation = '' ]. |
|
982 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
983 |
self should: [ dmsc skipCount = 0 ]. |
|
984 |
dmsc currentIndex: 1. |
|
985 |
||
986 |
dmsc processG. |
|
987 |
||
988 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
989 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
990 |
self should: [ dmsc skipCount = 1 ]. |
|
991 |
! |
|
992 |
||
993 |
testProcessGb6 |
|
994 |
dmsc inputKey: 'nger'. |
|
995 |
self should: [ dmsc inputKey = 'NGER' ]. |
|
996 |
||
997 |
self should: [ dmsc primaryTranslation = '' ]. |
|
998 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
999 |
self should: [ dmsc skipCount = 0 ]. |
|
1000 |
dmsc currentIndex: 2. |
|
1001 |
||
1002 |
dmsc processG. |
|
1003 |
||
1004 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
1005 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
1006 |
self should: [ dmsc skipCount = 1 ]. |
|
1007 |
! |
|
1008 |
||
1009 |
testProcessGb7 |
|
1010 |
dmsc inputKey: 'danger'. |
|
1011 |
self should: [ dmsc inputKey = 'DANGER' ]. |
|
1012 |
||
1013 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1014 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1015 |
self should: [ dmsc skipCount = 0 ]. |
|
1016 |
dmsc currentIndex: 4. |
|
1017 |
||
1018 |
dmsc processG. |
|
1019 |
||
1020 |
self should: [ dmsc primaryTranslation = 'J' ]. |
|
1021 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
1022 |
self should: [ dmsc skipCount = 1 ]. |
|
1023 |
! |
|
1024 |
||
1025 |
testProcessGb8 |
|
1026 |
dmsc inputKey: 'biaggi'. |
|
1027 |
self should: [ dmsc inputKey = 'BIAGGI' ]. |
|
1028 |
||
1029 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1030 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1031 |
self should: [ dmsc skipCount = 0 ]. |
|
1032 |
dmsc currentIndex: 4. |
|
1033 |
||
1034 |
dmsc processG. |
|
1035 |
||
1036 |
self should: [ dmsc primaryTranslation = 'J' ]. |
|
1037 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
1038 |
self should: [ dmsc skipCount = 1 ]. |
|
1039 |
! |
|
1040 |
||
1041 |
testProcessGb9 |
|
1042 |
dmsc inputKey: 'von biaggi'. |
|
1043 |
self should: [ dmsc inputKey = 'VON BIAGGI' ]. |
|
1044 |
||
1045 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1046 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1047 |
self should: [ dmsc skipCount = 0 ]. |
|
1048 |
dmsc currentIndex: 8. |
|
1049 |
||
1050 |
dmsc processG. |
|
1051 |
||
1052 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
1053 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
1054 |
self should: [ dmsc skipCount = 1 ]. |
|
1055 |
! |
|
1056 |
||
1057 |
testProcessGc1 |
|
1058 |
dmsc inputKey: 'biagier'. |
|
1059 |
self should: [ dmsc inputKey = 'BIAGIER' ]. |
|
1060 |
||
1061 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1062 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1063 |
self should: [ dmsc skipCount = 0 ]. |
|
1064 |
dmsc currentIndex: 4. |
|
1065 |
||
1066 |
dmsc processG. |
|
1067 |
||
1068 |
self should: [ dmsc primaryTranslation = 'J' ]. |
|
1069 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
1070 |
self should: [ dmsc skipCount = 1 ]. |
|
1071 |
! |
|
1072 |
||
1073 |
testProcessGc2 |
|
1074 |
dmsc inputKey: 'bigger'. |
|
1075 |
self should: [ dmsc inputKey = 'BIGGER' ]. |
|
1076 |
||
1077 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1078 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1079 |
self should: [ dmsc skipCount = 0 ]. |
|
1080 |
dmsc currentIndex: 3. |
|
1081 |
||
1082 |
dmsc processG. |
|
1083 |
||
1084 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
1085 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
1086 |
self should: [ dmsc skipCount = 1 ]. |
|
1087 |
! |
|
1088 |
||
1089 |
testProcessGc3 |
|
1090 |
dmsc inputKey: 'grass'. |
|
1091 |
self should: [ dmsc inputKey = 'GRASS' ]. |
|
1092 |
||
1093 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1094 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1095 |
self should: [ dmsc skipCount = 0 ]. |
|
1096 |
dmsc currentIndex: 3. |
|
1097 |
||
1098 |
dmsc processG. |
|
1099 |
||
1100 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
1101 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
1102 |
self should: [ dmsc skipCount = 0 ]. |
|
1103 |
! |
|
1104 |
||
1105 |
testProcessH |
|
1106 |
dmsc inputKey: 'Hannah'. |
|
1107 |
self should: [ dmsc inputKey = 'HANNAH' ]. |
|
1108 |
||
1109 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1110 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1111 |
self should: [ dmsc skipCount = 0 ]. |
|
1112 |
dmsc currentIndex: 1. |
|
1113 |
||
1114 |
dmsc processH. |
|
1115 |
||
1116 |
self should: [ dmsc primaryTranslation = 'H' ]. |
|
1117 |
self should: [ dmsc secondaryTranslation = 'H' ]. |
|
1118 |
self should: [ dmsc skipCount = 1 ]. |
|
1119 |
! |
|
1120 |
||
1121 |
testProcessH2 |
|
1122 |
dmsc inputKey: 'aha'. |
|
1123 |
self should: [ dmsc inputKey = 'AHA' ]. |
|
1124 |
||
1125 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1126 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1127 |
self should: [ dmsc skipCount = 0 ]. |
|
1128 |
dmsc currentIndex: 2. |
|
1129 |
||
1130 |
dmsc processH. |
|
1131 |
||
1132 |
self should: [ dmsc primaryTranslation = 'H' ]. |
|
1133 |
self should: [ dmsc secondaryTranslation = 'H' ]. |
|
1134 |
self should: [ dmsc skipCount = 1 ]. |
|
1135 |
! |
|
1136 |
||
1137 |
testProcessH3 |
|
1138 |
dmsc inputKey: 'doah'. |
|
1139 |
self should: [ dmsc inputKey = 'DOAH' ]. |
|
1140 |
||
1141 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1142 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1143 |
self should: [ dmsc skipCount = 0 ]. |
|
1144 |
dmsc currentIndex: 2. |
|
1145 |
||
1146 |
dmsc processH. |
|
1147 |
||
1148 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1149 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1150 |
self should: [ dmsc skipCount = 0 ]. |
|
1151 |
! |
|
1152 |
||
1153 |
testProcessJ |
|
1154 |
dmsc inputKey: 'jose'. |
|
1155 |
self should: [ dmsc inputKey = 'JOSE' ]. |
|
1156 |
||
1157 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1158 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1159 |
self should: [ dmsc skipCount = 0 ]. |
|
1160 |
dmsc currentIndex: 1. |
|
1161 |
||
1162 |
dmsc processJ. |
|
1163 |
||
1164 |
self should: [ dmsc primaryTranslation = 'H' ]. |
|
1165 |
self should: [ dmsc secondaryTranslation = 'H' ]. |
|
1166 |
self should: [ dmsc skipCount = 0 ]. |
|
1167 |
! |
|
1168 |
||
1169 |
testProcessJ1 |
|
1170 |
dmsc inputKey: 'san jacinto'. |
|
1171 |
self should: [ dmsc inputKey = 'SAN JACINTO' ]. |
|
1172 |
||
1173 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1174 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1175 |
self should: [ dmsc skipCount = 0 ]. |
|
1176 |
dmsc currentIndex: 4. |
|
1177 |
||
1178 |
dmsc processJ. |
|
1179 |
||
1180 |
self should: [ dmsc primaryTranslation = 'H' ]. |
|
1181 |
self should: [ dmsc secondaryTranslation = 'H' ]. |
|
1182 |
self should: [ dmsc skipCount = 0 ]. |
|
1183 |
! |
|
1184 |
||
1185 |
testProcessJ2 |
|
1186 |
dmsc inputKey: 'Jankelowicz'. |
|
1187 |
self should: [ dmsc inputKey = 'JANKELOWICZ' ]. |
|
1188 |
||
1189 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1190 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1191 |
self should: [ dmsc skipCount = 0 ]. |
|
1192 |
dmsc currentIndex: 1. |
|
1193 |
||
1194 |
dmsc processJ. |
|
1195 |
||
1196 |
self should: [ dmsc primaryTranslation = 'J' ]. |
|
1197 |
self should: [ dmsc secondaryTranslation = 'A' ]. |
|
1198 |
self should: [ dmsc skipCount = 0 ]. |
|
1199 |
! |
|
1200 |
||
1201 |
testProcessJ3 |
|
1202 |
dmsc inputKey: 'bajador'. |
|
1203 |
self should: [ dmsc inputKey = 'BAJADOR' ]. |
|
1204 |
||
1205 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1206 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1207 |
self should: [ dmsc skipCount = 0 ]. |
|
1208 |
dmsc currentIndex: 3. |
|
1209 |
||
1210 |
dmsc processJ. |
|
1211 |
||
1212 |
self should: [ dmsc primaryTranslation = 'J' ]. |
|
1213 |
self should: [ dmsc secondaryTranslation = 'H' ]. |
|
1214 |
self should: [ dmsc skipCount = 0 ]. |
|
1215 |
! |
|
1216 |
||
1217 |
testProcessJ4 |
|
1218 |
dmsc inputKey: 'borj'. |
|
1219 |
self should: [ dmsc inputKey = 'BORJ' ]. |
|
1220 |
||
1221 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1222 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1223 |
self should: [ dmsc skipCount = 0 ]. |
|
1224 |
dmsc currentIndex: 4. |
|
1225 |
||
1226 |
dmsc processJ. |
|
1227 |
||
1228 |
self should: [ dmsc primaryTranslation = 'J' ]. |
|
1229 |
self should: [ dmsc secondaryTranslation = ' ' ]. |
|
1230 |
self should: [ dmsc skipCount = 0 ]. |
|
1231 |
! |
|
1232 |
||
1233 |
testProcessJ5 |
|
1234 |
dmsc inputKey: 'bjl'. |
|
1235 |
self should: [ dmsc inputKey = 'BJL' ]. |
|
1236 |
||
1237 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1238 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1239 |
self should: [ dmsc skipCount = 0 ]. |
|
1240 |
dmsc currentIndex: 2. |
|
1241 |
||
1242 |
dmsc processJ. |
|
1243 |
||
1244 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1245 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1246 |
self should: [ dmsc skipCount = 0 ]. |
|
1247 |
! |
|
1248 |
||
1249 |
testProcessJ6 |
|
1250 |
dmsc inputKey: 'bjC'. |
|
1251 |
self should: [ dmsc inputKey = 'BJC' ]. |
|
1252 |
||
1253 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1254 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1255 |
self should: [ dmsc skipCount = 0 ]. |
|
1256 |
dmsc currentIndex: 2. |
|
1257 |
||
1258 |
dmsc processJ. |
|
1259 |
||
1260 |
self should: [ dmsc primaryTranslation = 'J' ]. |
|
1261 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
1262 |
self should: [ dmsc skipCount = 0 ]. |
|
1263 |
! |
|
1264 |
||
1265 |
testProcessJ7 |
|
1266 |
dmsc inputKey: 'bjj'. |
|
1267 |
self should: [ dmsc inputKey = 'BJJ' ]. |
|
1268 |
||
1269 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1270 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1271 |
self should: [ dmsc skipCount = 0 ]. |
|
1272 |
dmsc currentIndex: 2. |
|
1273 |
||
1274 |
dmsc processJ. |
|
1275 |
||
1276 |
self should: [ dmsc primaryTranslation = 'J' ]. |
|
1277 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
1278 |
self should: [ dmsc skipCount = 1 ]. |
|
1279 |
! |
|
1280 |
||
1281 |
testProcessK |
|
1282 |
dmsc inputKey: 'talk'. |
|
1283 |
self should: [ dmsc inputKey = 'TALK' ]. |
|
1284 |
||
1285 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1286 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1287 |
self should: [ dmsc skipCount = 0 ]. |
|
1288 |
dmsc currentIndex: 4. |
|
1289 |
||
1290 |
dmsc processK. |
|
1291 |
||
1292 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
1293 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
1294 |
self should: [ dmsc skipCount = 0 ]. |
|
1295 |
! |
|
1296 |
||
1297 |
testProcessK1 |
|
1298 |
dmsc inputKey: 'talkk'. |
|
1299 |
self should: [ dmsc inputKey = 'TALKK' ]. |
|
1300 |
||
1301 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1302 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1303 |
self should: [ dmsc skipCount = 0 ]. |
|
1304 |
dmsc currentIndex: 4. |
|
1305 |
||
1306 |
dmsc processK. |
|
1307 |
||
1308 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
1309 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
1310 |
self should: [ dmsc skipCount = 1 ]. |
|
1311 |
! |
|
1312 |
||
1313 |
testProcessL |
|
1314 |
dmsc inputKey: 'llamma'. |
|
1315 |
self should: [ dmsc inputKey = 'LLAMMA' ]. |
|
1316 |
||
1317 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1318 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1319 |
self should: [ dmsc skipCount = 0 ]. |
|
1320 |
dmsc currentIndex: 1. |
|
1321 |
||
1322 |
dmsc processL. |
|
1323 |
||
1324 |
self should: [ dmsc primaryTranslation = 'L' ]. |
|
1325 |
self should: [ dmsc secondaryTranslation = 'L' ]. |
|
1326 |
self should: [ dmsc skipCount = 1 ]. |
|
1327 |
! |
|
1328 |
||
1329 |
testProcessL1 |
|
1330 |
dmsc inputKey: 'camilla'. |
|
1331 |
self should: [ dmsc inputKey = 'CAMILLA' ]. |
|
1332 |
||
1333 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1334 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1335 |
self should: [ dmsc skipCount = 0 ]. |
|
1336 |
dmsc currentIndex: 5. |
|
1337 |
||
1338 |
dmsc processL. |
|
1339 |
||
1340 |
self should: [ dmsc primaryTranslation = 'L' ]. |
|
1341 |
self should: [ dmsc secondaryTranslation = ' ' ]. |
|
1342 |
self should: [ dmsc skipCount = 1 ]. |
|
1343 |
! |
|
1344 |
||
1345 |
testProcessL2 |
|
1346 |
dmsc inputKey: 'cabrillo'. |
|
1347 |
self should: [ dmsc inputKey = 'CABRILLO' ]. |
|
1348 |
||
1349 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1350 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1351 |
self should: [ dmsc skipCount = 0 ]. |
|
1352 |
dmsc currentIndex: 6. |
|
1353 |
||
1354 |
dmsc processL. |
|
1355 |
||
1356 |
self should: [ dmsc primaryTranslation = 'L' ]. |
|
1357 |
self should: [ dmsc secondaryTranslation = ' ' ]. |
|
1358 |
self should: [ dmsc skipCount = 1 ]. |
|
1359 |
! |
|
1360 |
||
1361 |
testProcessL3 |
|
1362 |
dmsc inputKey: 'lisa'. |
|
1363 |
self should: [ dmsc inputKey = 'LISA' ]. |
|
1364 |
||
1365 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1366 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1367 |
self should: [ dmsc skipCount = 0 ]. |
|
1368 |
dmsc currentIndex: 1. |
|
1369 |
||
1370 |
dmsc processL. |
|
1371 |
||
1372 |
self should: [ dmsc primaryTranslation = 'L' ]. |
|
1373 |
self should: [ dmsc secondaryTranslation = 'L' ]. |
|
1374 |
self should: [ dmsc skipCount = 0 ]. |
|
1375 |
! |
|
1376 |
||
1377 |
testProcessM |
|
1378 |
dmsc inputKey: 'dumb'. |
|
1379 |
self should: [ dmsc inputKey = 'DUMB' ]. |
|
1380 |
||
1381 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1382 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1383 |
self should: [ dmsc skipCount = 0 ]. |
|
1384 |
dmsc currentIndex: 3. |
|
1385 |
||
1386 |
dmsc processM. |
|
1387 |
||
1388 |
self should: [ dmsc primaryTranslation = 'M' ]. |
|
1389 |
self should: [ dmsc secondaryTranslation = 'M' ]. |
|
1390 |
self should: [ dmsc skipCount = 1 ]. |
|
1391 |
! |
|
1392 |
||
1393 |
testProcessM1 |
|
1394 |
dmsc inputKey: 'thumb'. |
|
1395 |
self should: [ dmsc inputKey = 'THUMB' ]. |
|
1396 |
||
1397 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1398 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1399 |
self should: [ dmsc skipCount = 0 ]. |
|
1400 |
dmsc currentIndex: 4. |
|
1401 |
||
1402 |
dmsc processM. |
|
1403 |
||
1404 |
self should: [ dmsc primaryTranslation = 'M' ]. |
|
1405 |
self should: [ dmsc secondaryTranslation = 'M' ]. |
|
1406 |
self should: [ dmsc skipCount = 1 ]. |
|
1407 |
! |
|
1408 |
||
1409 |
testProcessM2 |
|
1410 |
dmsc inputKey: 'mmum'. |
|
1411 |
self should: [ dmsc inputKey = 'MMUM' ]. |
|
1412 |
||
1413 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1414 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1415 |
self should: [ dmsc skipCount = 0 ]. |
|
1416 |
dmsc currentIndex: 1. |
|
1417 |
||
1418 |
dmsc processM. |
|
1419 |
||
1420 |
self should: [ dmsc primaryTranslation = 'M' ]. |
|
1421 |
self should: [ dmsc secondaryTranslation = 'M' ]. |
|
1422 |
self should: [ dmsc skipCount = 1 ]. |
|
1423 |
! |
|
1424 |
||
1425 |
testProcessM3 |
|
1426 |
dmsc inputKey: 'mom'. |
|
1427 |
self should: [ dmsc inputKey = 'MOM' ]. |
|
1428 |
||
1429 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1430 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1431 |
self should: [ dmsc skipCount = 0 ]. |
|
1432 |
dmsc currentIndex: 3. |
|
1433 |
||
1434 |
dmsc processM. |
|
1435 |
||
1436 |
self should: [ dmsc primaryTranslation = 'M' ]. |
|
1437 |
self should: [ dmsc secondaryTranslation = 'M' ]. |
|
1438 |
self should: [ dmsc skipCount = 0 ]. |
|
1439 |
! |
|
1440 |
||
1441 |
testProcessN |
|
1442 |
dmsc inputKey: 'tin'. |
|
1443 |
self should: [ dmsc inputKey = 'TIN' ]. |
|
1444 |
||
1445 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1446 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1447 |
self should: [ dmsc skipCount = 0 ]. |
|
1448 |
dmsc currentIndex: 3. |
|
1449 |
||
1450 |
dmsc processN. |
|
1451 |
||
1452 |
self should: [ dmsc primaryTranslation = 'N' ]. |
|
1453 |
self should: [ dmsc secondaryTranslation = 'N' ]. |
|
1454 |
self should: [ dmsc skipCount = 0 ]. |
|
1455 |
! |
|
1456 |
||
1457 |
testProcessN1 |
|
1458 |
dmsc inputKey: 'TINN'. |
|
1459 |
self should: [ dmsc inputKey = 'TINN' ]. |
|
1460 |
||
1461 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1462 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1463 |
self should: [ dmsc skipCount = 0 ]. |
|
1464 |
dmsc currentIndex: 3. |
|
1465 |
||
1466 |
dmsc processN. |
|
1467 |
||
1468 |
self should: [ dmsc primaryTranslation = 'N' ]. |
|
1469 |
self should: [ dmsc secondaryTranslation = 'N' ]. |
|
1470 |
self should: [ dmsc skipCount = 1 ]. |
|
1471 |
! |
|
1472 |
||
1473 |
testProcessNtilde |
|
1500 | 1474 |
dmsc inputKey: 'Naa'. |
1475 |
self should: [ dmsc inputKey = 'NAA' ]. |
|
1447 | 1476 |
|
1477 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1478 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1479 |
self should: [ dmsc skipCount = 0 ]. |
|
1480 |
dmsc currentIndex: 3. |
|
1481 |
||
1482 |
dmsc processNtilde. |
|
1483 |
||
1484 |
self should: [ dmsc primaryTranslation = 'N' ]. |
|
1485 |
self should: [ dmsc secondaryTranslation = 'N' ]. |
|
1486 |
self should: [ dmsc skipCount = 0 ]. |
|
527 | 1487 |
! |
1488 |
||
1489 |
testProcessP |
|
1490 |
dmsc inputKey: 'phone'. |
|
1491 |
self should: [ dmsc inputKey = 'PHONE' ]. |
|
1492 |
||
1493 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1494 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1495 |
self should: [ dmsc skipCount = 0 ]. |
|
1496 |
dmsc currentIndex: 1. |
|
1497 |
||
1498 |
dmsc processP. |
|
1499 |
||
1500 |
self should: [ dmsc primaryTranslation = 'F' ]. |
|
1501 |
self should: [ dmsc secondaryTranslation = 'F' ]. |
|
1502 |
self should: [ dmsc skipCount = 1 ]. |
|
1503 |
! |
|
1504 |
||
1505 |
testProcessP1 |
|
1506 |
dmsc inputKey: 'campbell'. |
|
1507 |
self should: [ dmsc inputKey = 'CAMPBELL' ]. |
|
1508 |
||
1509 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1510 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1511 |
self should: [ dmsc skipCount = 0 ]. |
|
1512 |
dmsc currentIndex: 4. |
|
1513 |
||
1514 |
dmsc processP. |
|
1515 |
||
1516 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1517 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1518 |
self should: [ dmsc skipCount = 1 ]. |
|
1519 |
! |
|
1520 |
||
1521 |
testProcessP2 |
|
1522 |
dmsc inputKey: 'peanut'. |
|
1523 |
self should: [ dmsc inputKey = 'PEANUT' ]. |
|
1524 |
||
1525 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1526 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1527 |
self should: [ dmsc skipCount = 0 ]. |
|
1528 |
dmsc currentIndex: 1. |
|
1529 |
||
1530 |
dmsc processP. |
|
1531 |
||
1532 |
self should: [ dmsc primaryTranslation = 'P' ]. |
|
1533 |
self should: [ dmsc secondaryTranslation = 'P' ]. |
|
1534 |
self should: [ dmsc skipCount = 0 ]. |
|
1535 |
! |
|
1536 |
||
1537 |
testProcessQ |
|
1538 |
dmsc inputKey: 'quiet'. |
|
1539 |
self should: [ dmsc inputKey = 'QUIET' ]. |
|
1540 |
||
1541 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1542 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1543 |
self should: [ dmsc skipCount = 0 ]. |
|
1544 |
dmsc currentIndex: 1. |
|
1545 |
||
1546 |
dmsc processQ. |
|
1547 |
||
1548 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
1549 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
1550 |
self should: [ dmsc skipCount = 0 ]. |
|
1551 |
! |
|
1552 |
||
1553 |
testProcessQ1 |
|
1554 |
dmsc inputKey: 'qquiet'. |
|
1555 |
self should: [ dmsc inputKey = 'QQUIET' ]. |
|
1556 |
||
1557 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1558 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1559 |
self should: [ dmsc skipCount = 0 ]. |
|
1560 |
dmsc currentIndex: 1. |
|
1561 |
||
1562 |
dmsc processQ. |
|
1563 |
||
1564 |
self should: [ dmsc primaryTranslation = 'K' ]. |
|
1565 |
self should: [ dmsc secondaryTranslation = 'K' ]. |
|
1566 |
self should: [ dmsc skipCount = 1 ]. |
|
1567 |
! |
|
1568 |
||
1569 |
testProcessR |
|
1570 |
dmsc inputKey: 'rogier'. |
|
1571 |
self should: [ dmsc inputKey = 'ROGIER' ]. |
|
1572 |
||
1573 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1574 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1575 |
self should: [ dmsc skipCount = 0 ]. |
|
1576 |
dmsc currentIndex: 6. |
|
1577 |
||
1578 |
dmsc processR. |
|
1579 |
||
1580 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1581 |
self should: [ dmsc secondaryTranslation = 'R' ]. |
|
1582 |
self should: [ dmsc skipCount = 0 ]. |
|
1583 |
! |
|
1584 |
||
1585 |
testProcessR1 |
|
1586 |
dmsc inputKey: 'hochmeier'. |
|
1587 |
self should: [ dmsc inputKey = 'HOCHMEIER' ]. |
|
1588 |
||
1589 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1590 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1591 |
self should: [ dmsc skipCount = 0 ]. |
|
1592 |
dmsc currentIndex: 9. |
|
1593 |
||
1594 |
dmsc processR. |
|
1595 |
||
1596 |
self should: [ dmsc primaryTranslation = 'R' ]. |
|
1597 |
self should: [ dmsc secondaryTranslation = 'R' ]. |
|
1598 |
self should: [ dmsc skipCount = 0 ]. |
|
1599 |
! |
|
1600 |
||
1601 |
testProcessR2 |
|
1602 |
dmsc inputKey: 'french'. |
|
1603 |
self should: [ dmsc inputKey = 'FRENCH' ]. |
|
1604 |
||
1605 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1606 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1607 |
self should: [ dmsc skipCount = 0 ]. |
|
1608 |
dmsc currentIndex: 2. |
|
1609 |
||
1610 |
dmsc processR. |
|
1611 |
||
1612 |
self should: [ dmsc primaryTranslation = 'R' ]. |
|
1613 |
self should: [ dmsc secondaryTranslation = 'R' ]. |
|
1614 |
self should: [ dmsc skipCount = 0 ]. |
|
1615 |
! |
|
1616 |
||
1617 |
testProcessR3 |
|
1618 |
dmsc inputKey: 'frrench'. |
|
1619 |
self should: [ dmsc inputKey = 'FRRENCH' ]. |
|
1620 |
||
1621 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1622 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1623 |
self should: [ dmsc skipCount = 0 ]. |
|
1624 |
dmsc currentIndex: 2. |
|
1625 |
||
1626 |
dmsc processR. |
|
1627 |
||
1628 |
self should: [ dmsc primaryTranslation = 'R' ]. |
|
1629 |
self should: [ dmsc secondaryTranslation = 'R' ]. |
|
1630 |
self should: [ dmsc skipCount = 1 ]. |
|
1631 |
! |
|
1632 |
||
1633 |
testProcessS |
|
1634 |
dmsc inputKey: 'island'. |
|
1635 |
self should: [ dmsc inputKey = 'ISLAND' ]. |
|
1636 |
||
1637 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1638 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1639 |
self should: [ dmsc skipCount = 0 ]. |
|
1640 |
dmsc currentIndex: 2. |
|
1641 |
||
1642 |
dmsc processS. |
|
1643 |
||
1644 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1645 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1646 |
self should: [ dmsc skipCount = 0 ]. |
|
1647 |
! |
|
1648 |
||
1649 |
testProcessS1 |
|
1650 |
dmsc inputKey: 'isle'. |
|
1651 |
self should: [ dmsc inputKey = 'ISLE' ]. |
|
1652 |
||
1653 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1654 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1655 |
self should: [ dmsc skipCount = 0 ]. |
|
1656 |
dmsc currentIndex: 2. |
|
1657 |
||
1658 |
dmsc processS. |
|
1659 |
||
1660 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1661 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1662 |
self should: [ dmsc skipCount = 0 ]. |
|
1663 |
! |
|
1664 |
||
1665 |
testProcessS2 |
|
1666 |
dmsc inputKey: 'carlisle'. |
|
1667 |
self should: [ dmsc inputKey = 'CARLISLE' ]. |
|
1668 |
||
1669 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1670 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1671 |
self should: [ dmsc skipCount = 0 ]. |
|
1672 |
dmsc currentIndex: 6. |
|
1673 |
||
1674 |
dmsc processS. |
|
1675 |
||
1676 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1677 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1678 |
self should: [ dmsc skipCount = 0 ]. |
|
1679 |
! |
|
1680 |
||
1681 |
testProcessS3 |
|
1682 |
dmsc inputKey: 'carlysle'. |
|
1683 |
self should: [ dmsc inputKey = 'CARLYSLE' ]. |
|
1684 |
||
1685 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1686 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1687 |
self should: [ dmsc skipCount = 0 ]. |
|
1688 |
dmsc currentIndex: 6. |
|
1689 |
||
1690 |
dmsc processS. |
|
1691 |
||
1692 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1693 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1694 |
self should: [ dmsc skipCount = 0 ]. |
|
1695 |
! |
|
1696 |
||
1697 |
testProcessS4 |
|
1698 |
dmsc inputKey: 'sugar'. |
|
1699 |
self should: [ dmsc inputKey = 'SUGAR' ]. |
|
1700 |
||
1701 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1702 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1703 |
self should: [ dmsc skipCount = 0 ]. |
|
1704 |
dmsc currentIndex: 1. |
|
1705 |
||
1706 |
dmsc processS. |
|
1707 |
||
1708 |
self should: [ dmsc primaryTranslation = 'X' ]. |
|
1709 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
1710 |
self should: [ dmsc skipCount = 0 ]. |
|
1711 |
! |
|
1712 |
||
1713 |
testProcessS5 |
|
1714 |
dmsc inputKey: 'sheim'. |
|
1715 |
self should: [ dmsc inputKey = 'SHEIM' ]. |
|
1716 |
||
1717 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1718 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1719 |
self should: [ dmsc skipCount = 0 ]. |
|
1720 |
dmsc currentIndex: 1. |
|
1721 |
||
1722 |
dmsc processS. |
|
1723 |
||
1724 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
1725 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
1726 |
self should: [ dmsc skipCount = 1 ]. |
|
1727 |
! |
|
1728 |
||
1729 |
testProcessS6 |
|
1730 |
dmsc inputKey: 'shook'. |
|
1731 |
self should: [ dmsc inputKey = 'SHOOK' ]. |
|
1732 |
||
1733 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1734 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1735 |
self should: [ dmsc skipCount = 0 ]. |
|
1736 |
dmsc currentIndex: 1. |
|
1737 |
||
1738 |
dmsc processS. |
|
1739 |
||
1740 |
self should: [ dmsc primaryTranslation = 'X' ]. |
|
1741 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
1742 |
self should: [ dmsc skipCount = 1 ]. |
|
1743 |
! |
|
1744 |
||
1745 |
testProcessS7 |
|
1746 |
dmsc inputKey: 'sio'. |
|
1747 |
self should: [ dmsc inputKey = 'SIO' ]. |
|
1748 |
||
1749 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1750 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1751 |
self should: [ dmsc skipCount = 0 ]. |
|
1752 |
dmsc currentIndex: 1. |
|
1753 |
||
1754 |
dmsc processS. |
|
1755 |
||
1756 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
1757 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
1758 |
self should: [ dmsc skipCount = 2 ]. |
|
1759 |
! |
|
1760 |
||
1761 |
testProcessS8 |
|
1762 |
dmsc inputKey: 'sian'. |
|
1763 |
self should: [ dmsc inputKey = 'SIAN' ]. |
|
1764 |
||
1765 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1766 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1767 |
self should: [ dmsc skipCount = 0 ]. |
|
1768 |
dmsc currentIndex: 1. |
|
1769 |
||
1770 |
dmsc processS. |
|
1771 |
||
1772 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
1773 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
1774 |
self should: [ dmsc skipCount = 2 ]. |
|
1775 |
! |
|
1776 |
||
1777 |
testProcessS9 |
|
1778 |
dmsc inputKey: 'siowitz'. |
|
1779 |
self should: [ dmsc inputKey = 'SIOWITZ' ]. |
|
1780 |
||
1781 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1782 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1783 |
self should: [ dmsc skipCount = 0 ]. |
|
1784 |
dmsc currentIndex: 1. |
|
1785 |
||
1786 |
dmsc processS. |
|
1787 |
||
1788 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
1789 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
1790 |
self should: [ dmsc skipCount = 2 ]. |
|
1791 |
! |
|
1792 |
||
1793 |
testProcessSa1 |
|
1794 |
dmsc inputKey: 'smith'. |
|
1795 |
self should: [ dmsc inputKey = 'SMITH' ]. |
|
1796 |
||
1797 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1798 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1799 |
self should: [ dmsc skipCount = 0 ]. |
|
1800 |
dmsc currentIndex: 1. |
|
1801 |
||
1802 |
dmsc processS. |
|
1803 |
||
1804 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
1805 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
1806 |
self should: [ dmsc skipCount = 0 ]. |
|
1807 |
! |
|
1808 |
||
1809 |
testProcessSa2 |
|
1810 |
dmsc inputKey: 'snider'. |
|
1811 |
self should: [ dmsc inputKey = 'SNIDER' ]. |
|
1812 |
||
1813 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1814 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1815 |
self should: [ dmsc skipCount = 0 ]. |
|
1816 |
dmsc currentIndex: 1. |
|
1817 |
||
1818 |
dmsc processS. |
|
1819 |
||
1820 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
1821 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
1822 |
self should: [ dmsc skipCount = 0 ]. |
|
1823 |
! |
|
1824 |
||
1825 |
testProcessSa3 |
|
1826 |
dmsc inputKey: 'szan'. |
|
1827 |
self should: [ dmsc inputKey = 'SZAN' ]. |
|
1828 |
||
1829 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1830 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1831 |
self should: [ dmsc skipCount = 0 ]. |
|
1832 |
dmsc currentIndex: 1. |
|
1833 |
||
1834 |
dmsc processS. |
|
1835 |
||
1836 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
1837 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
1838 |
self should: [ dmsc skipCount = 1 ]. |
|
1839 |
! |
|
1840 |
||
1841 |
testProcessSa4 |
|
1842 |
dmsc inputKey: 'school'. |
|
1843 |
self should: [ dmsc inputKey = 'SCHOOL' ]. |
|
1844 |
||
1845 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1846 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1847 |
self should: [ dmsc skipCount = 0 ]. |
|
1848 |
dmsc currentIndex: 1. |
|
1849 |
||
1850 |
dmsc processS. |
|
1851 |
||
1852 |
self should: [ dmsc primaryTranslation = 'SK' ]. |
|
1853 |
self should: [ dmsc secondaryTranslation = 'SK' ]. |
|
1854 |
self should: [ dmsc skipCount = 2 ]. |
|
1855 |
! |
|
1856 |
||
1857 |
testProcessSa5 |
|
1858 |
dmsc inputKey: 'schenker'. |
|
1859 |
self should: [ dmsc inputKey = 'SCHENKER' ]. |
|
1860 |
||
1861 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1862 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1863 |
self should: [ dmsc skipCount = 0 ]. |
|
1864 |
dmsc currentIndex: 1. |
|
1865 |
||
1866 |
dmsc processS. |
|
1867 |
||
1868 |
self should: [ dmsc primaryTranslation = 'X' ]. |
|
1869 |
self should: [ dmsc secondaryTranslation = 'SK' ]. |
|
1870 |
self should: [ dmsc skipCount = 2 ]. |
|
1871 |
! |
|
1872 |
||
1873 |
testProcessSa6 |
|
1874 |
dmsc inputKey: 'schank'. |
|
1875 |
self should: [ dmsc inputKey = 'SCHANK' ]. |
|
1876 |
||
1877 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1878 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1879 |
self should: [ dmsc skipCount = 0 ]. |
|
1880 |
dmsc currentIndex: 1. |
|
1881 |
||
1882 |
dmsc processS. |
|
1883 |
||
1884 |
self should: [ dmsc primaryTranslation = 'X' ]. |
|
1885 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
1886 |
self should: [ dmsc skipCount = 2 ]. |
|
1887 |
! |
|
1888 |
||
1889 |
testProcessSa7 |
|
1890 |
dmsc inputKey: 'schbnk'. |
|
1891 |
self should: [ dmsc inputKey = 'SCHBNK' ]. |
|
1892 |
||
1893 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1894 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1895 |
self should: [ dmsc skipCount = 0 ]. |
|
1896 |
dmsc currentIndex: 1. |
|
1897 |
||
1898 |
dmsc processS. |
|
1899 |
||
1900 |
self should: [ dmsc primaryTranslation = 'X' ]. |
|
1901 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
1902 |
self should: [ dmsc skipCount = 2 ]. |
|
1903 |
! |
|
1904 |
||
1905 |
testProcessSa8 |
|
1906 |
dmsc inputKey: 'schwnk'. |
|
1907 |
self should: [ dmsc inputKey = 'SCHWNK' ]. |
|
1908 |
||
1909 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1910 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1911 |
self should: [ dmsc skipCount = 0 ]. |
|
1912 |
dmsc currentIndex: 1. |
|
1913 |
||
1914 |
dmsc processS. |
|
1915 |
||
1916 |
self should: [ dmsc primaryTranslation = 'X' ]. |
|
1917 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
1918 |
self should: [ dmsc skipCount = 2 ]. |
|
1919 |
! |
|
1920 |
||
1921 |
testProcessSa9 |
|
1922 |
dmsc inputKey: 'scewnk'. |
|
1923 |
self should: [ dmsc inputKey = 'SCEWNK' ]. |
|
1924 |
||
1925 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1926 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1927 |
self should: [ dmsc skipCount = 0 ]. |
|
1928 |
dmsc currentIndex: 1. |
|
1929 |
||
1930 |
dmsc processS. |
|
1931 |
||
1932 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
1933 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
1934 |
self should: [ dmsc skipCount = 2 ]. |
|
1935 |
! |
|
1936 |
||
1937 |
testProcessSb1 |
|
1938 |
dmsc inputKey: 'scawnk'. |
|
1939 |
self should: [ dmsc inputKey = 'SCAWNK' ]. |
|
1940 |
||
1941 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1942 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1943 |
self should: [ dmsc skipCount = 0 ]. |
|
1944 |
dmsc currentIndex: 1. |
|
1945 |
||
1946 |
dmsc processS. |
|
1947 |
||
1948 |
self should: [ dmsc primaryTranslation = 'SK' ]. |
|
1949 |
self should: [ dmsc secondaryTranslation = 'SK' ]. |
|
1950 |
self should: [ dmsc skipCount = 2 ]. |
|
1951 |
! |
|
1952 |
||
1953 |
testProcessSb2 |
|
1954 |
dmsc inputKey: 'resnais'. |
|
1955 |
self should: [ dmsc inputKey = 'RESNAIS' ]. |
|
1956 |
||
1957 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1958 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1959 |
self should: [ dmsc skipCount = 0 ]. |
|
1960 |
dmsc currentIndex: 7. |
|
1961 |
||
1962 |
dmsc processS. |
|
1963 |
||
1964 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1965 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
1966 |
self should: [ dmsc skipCount = 0 ]. |
|
1967 |
! |
|
1968 |
||
1969 |
testProcessSb3 |
|
1970 |
dmsc inputKey: 'resnas'. |
|
1971 |
self should: [ dmsc inputKey = 'RESNAS' ]. |
|
1972 |
||
1973 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1974 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1975 |
self should: [ dmsc skipCount = 0 ]. |
|
1976 |
dmsc currentIndex: 6. |
|
1977 |
||
1978 |
dmsc processS. |
|
1979 |
||
1980 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
1981 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
1982 |
self should: [ dmsc skipCount = 0 ]. |
|
1983 |
! |
|
1984 |
||
1985 |
testProcessSb4 |
|
1986 |
dmsc inputKey: 'resnass'. |
|
1987 |
self should: [ dmsc inputKey = 'RESNASS' ]. |
|
1988 |
||
1989 |
self should: [ dmsc primaryTranslation = '' ]. |
|
1990 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
1991 |
self should: [ dmsc skipCount = 0 ]. |
|
1992 |
dmsc currentIndex: 6. |
|
1993 |
||
1994 |
dmsc processS. |
|
1995 |
||
1996 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
1997 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
1998 |
self should: [ dmsc skipCount = 1 ]. |
|
1999 |
! |
|
2000 |
||
2001 |
testProcessT1 |
|
2002 |
dmsc inputKey: 'action'. |
|
2003 |
self should: [ dmsc inputKey = 'ACTION' ]. |
|
2004 |
||
2005 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2006 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2007 |
self should: [ dmsc skipCount = 0 ]. |
|
2008 |
dmsc currentIndex: 3. |
|
2009 |
||
2010 |
dmsc processT. |
|
2011 |
||
2012 |
self should: [ dmsc primaryTranslation = 'X' ]. |
|
2013 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
2014 |
self should: [ dmsc skipCount = 2 ]. |
|
2015 |
! |
|
2016 |
||
2017 |
testProcessT2 |
|
2018 |
dmsc inputKey: 'actia'. |
|
2019 |
self should: [ dmsc inputKey = 'ACTIA' ]. |
|
2020 |
||
2021 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2022 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2023 |
self should: [ dmsc skipCount = 0 ]. |
|
2024 |
dmsc currentIndex: 3. |
|
2025 |
||
2026 |
dmsc processT. |
|
2027 |
||
2028 |
self should: [ dmsc primaryTranslation = 'X' ]. |
|
2029 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
2030 |
self should: [ dmsc skipCount = 2 ]. |
|
2031 |
! |
|
2032 |
||
2033 |
testProcessT3 |
|
2034 |
dmsc inputKey: 'actch'. |
|
2035 |
self should: [ dmsc inputKey = 'ACTCH' ]. |
|
2036 |
||
2037 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2038 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2039 |
self should: [ dmsc skipCount = 0 ]. |
|
2040 |
dmsc currentIndex: 3. |
|
2041 |
||
2042 |
dmsc processT. |
|
2043 |
||
2044 |
self should: [ dmsc primaryTranslation = 'X' ]. |
|
2045 |
self should: [ dmsc secondaryTranslation = 'X' ]. |
|
2046 |
self should: [ dmsc skipCount = 2 ]. |
|
2047 |
! |
|
2048 |
||
2049 |
testProcessT4 |
|
2050 |
dmsc inputKey: 'thomas'. |
|
2051 |
self should: [ dmsc inputKey = 'THOMAS' ]. |
|
2052 |
||
2053 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2054 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2055 |
self should: [ dmsc skipCount = 0 ]. |
|
2056 |
dmsc currentIndex: 1. |
|
2057 |
||
2058 |
dmsc processT. |
|
2059 |
||
2060 |
self should: [ dmsc primaryTranslation = 'T' ]. |
|
2061 |
self should: [ dmsc secondaryTranslation = 'T' ]. |
|
2062 |
self should: [ dmsc skipCount = 1 ]. |
|
2063 |
! |
|
2064 |
||
2065 |
testProcessT5 |
|
2066 |
dmsc inputKey: 'thames'. |
|
2067 |
self should: [ dmsc inputKey = 'THAMES' ]. |
|
2068 |
||
2069 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2070 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2071 |
self should: [ dmsc skipCount = 0 ]. |
|
2072 |
dmsc currentIndex: 1. |
|
2073 |
||
2074 |
dmsc processT. |
|
2075 |
||
2076 |
self should: [ dmsc primaryTranslation = 'T' ]. |
|
2077 |
self should: [ dmsc secondaryTranslation = 'T' ]. |
|
2078 |
self should: [ dmsc skipCount = 1 ]. |
|
2079 |
! |
|
2080 |
||
2081 |
testProcessT6 |
|
2082 |
dmsc inputKey: 'von thrapp'. |
|
2083 |
self should: [ dmsc inputKey = 'VON THRAPP' ]. |
|
2084 |
||
2085 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2086 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2087 |
self should: [ dmsc skipCount = 0 ]. |
|
2088 |
dmsc currentIndex: 5. |
|
2089 |
||
2090 |
dmsc processT. |
|
2091 |
||
2092 |
self should: [ dmsc primaryTranslation = 'T' ]. |
|
2093 |
self should: [ dmsc secondaryTranslation = 'T' ]. |
|
2094 |
self should: [ dmsc skipCount = 1 ]. |
|
2095 |
! |
|
2096 |
||
2097 |
testProcessT7 |
|
2098 |
dmsc inputKey: 'schrthop'. |
|
2099 |
self should: [ dmsc inputKey = 'SCHRTHOP' ]. |
|
2100 |
||
2101 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2102 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2103 |
self should: [ dmsc skipCount = 0 ]. |
|
2104 |
dmsc currentIndex: 5. |
|
2105 |
||
2106 |
dmsc processT. |
|
2107 |
||
2108 |
self should: [ dmsc primaryTranslation = 'T' ]. |
|
2109 |
self should: [ dmsc secondaryTranslation = 'T' ]. |
|
2110 |
self should: [ dmsc skipCount = 1 ]. |
|
2111 |
! |
|
2112 |
||
2113 |
testProcessT8 |
|
2114 |
dmsc inputKey: 'thrap'. |
|
2115 |
self should: [ dmsc inputKey = 'THRAP' ]. |
|
2116 |
||
2117 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2118 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2119 |
self should: [ dmsc skipCount = 0 ]. |
|
2120 |
dmsc currentIndex: 1. |
|
2121 |
||
2122 |
dmsc processT. |
|
2123 |
||
2124 |
self should: [ dmsc primaryTranslation = '0' ]. |
|
2125 |
self should: [ dmsc secondaryTranslation = 'T' ]. |
|
2126 |
self should: [ dmsc skipCount = 1 ]. |
|
2127 |
! |
|
2128 |
||
2129 |
testProcessT9 |
|
2130 |
dmsc inputKey: 'ttrump'. |
|
2131 |
self should: [ dmsc inputKey = 'TTRUMP' ]. |
|
2132 |
||
2133 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2134 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2135 |
self should: [ dmsc skipCount = 0 ]. |
|
2136 |
dmsc currentIndex: 1. |
|
2137 |
||
2138 |
dmsc processT. |
|
2139 |
||
2140 |
self should: [ dmsc primaryTranslation = 'T' ]. |
|
2141 |
self should: [ dmsc secondaryTranslation = 'T' ]. |
|
2142 |
self should: [ dmsc skipCount = 1 ]. |
|
2143 |
! |
|
2144 |
||
2145 |
testProcessTa1 |
|
2146 |
dmsc inputKey: 'trump'. |
|
2147 |
self should: [ dmsc inputKey = 'TRUMP' ]. |
|
2148 |
||
2149 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2150 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2151 |
self should: [ dmsc skipCount = 0 ]. |
|
2152 |
dmsc currentIndex: 1. |
|
2153 |
||
2154 |
dmsc processT. |
|
2155 |
||
2156 |
self should: [ dmsc primaryTranslation = 'T' ]. |
|
2157 |
self should: [ dmsc secondaryTranslation = 'T' ]. |
|
2158 |
self should: [ dmsc skipCount = 0 ]. |
|
2159 |
! |
|
2160 |
||
2161 |
testProcessV |
|
2162 |
dmsc inputKey: 'violet'. |
|
2163 |
self should: [ dmsc inputKey = 'VIOLET' ]. |
|
2164 |
||
2165 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2166 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2167 |
self should: [ dmsc skipCount = 0 ]. |
|
2168 |
dmsc currentIndex: 1. |
|
2169 |
||
2170 |
dmsc processV. |
|
2171 |
||
2172 |
self should: [ dmsc primaryTranslation = 'F' ]. |
|
2173 |
self should: [ dmsc secondaryTranslation = 'F' ]. |
|
2174 |
self should: [ dmsc skipCount = 0 ]. |
|
2175 |
! |
|
2176 |
||
2177 |
testProcessV1 |
|
2178 |
dmsc inputKey: 'vviolet'. |
|
2179 |
self should: [ dmsc inputKey = 'VVIOLET' ]. |
|
2180 |
||
2181 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2182 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2183 |
self should: [ dmsc skipCount = 0 ]. |
|
2184 |
dmsc currentIndex: 1. |
|
2185 |
||
2186 |
dmsc processV. |
|
2187 |
||
2188 |
self should: [ dmsc primaryTranslation = 'F' ]. |
|
2189 |
self should: [ dmsc secondaryTranslation = 'F' ]. |
|
2190 |
self should: [ dmsc skipCount = 1 ]. |
|
2191 |
! |
|
2192 |
||
2193 |
testProcessW |
|
2194 |
dmsc inputKey: 'wreath'. |
|
2195 |
self should: [ dmsc inputKey = 'WREATH' ]. |
|
2196 |
||
2197 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2198 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2199 |
self should: [ dmsc skipCount = 0 ]. |
|
2200 |
dmsc currentIndex: 1. |
|
2201 |
||
2202 |
dmsc processW. |
|
2203 |
||
2204 |
self should: [ dmsc primaryTranslation = 'R' ]. |
|
2205 |
self should: [ dmsc secondaryTranslation = 'R' ]. |
|
2206 |
self should: [ dmsc skipCount = 1 ]. |
|
2207 |
! |
|
2208 |
||
2209 |
testProcessW1 |
|
2210 |
dmsc inputKey: 'water'. |
|
2211 |
self should: [ dmsc inputKey = 'WATER' ]. |
|
2212 |
||
2213 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2214 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2215 |
self should: [ dmsc skipCount = 0 ]. |
|
2216 |
dmsc currentIndex: 1. |
|
2217 |
||
2218 |
dmsc processW. |
|
2219 |
||
2220 |
self should: [ dmsc primaryTranslation = 'A' ]. |
|
2221 |
self should: [ dmsc secondaryTranslation = 'F' ]. |
|
2222 |
self should: [ dmsc skipCount = 0 ]. |
|
2223 |
! |
|
2224 |
||
2225 |
testProcessW2 |
|
2226 |
dmsc inputKey: 'whether'. |
|
2227 |
self should: [ dmsc inputKey = 'WHETHER' ]. |
|
2228 |
||
2229 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2230 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2231 |
self should: [ dmsc skipCount = 0 ]. |
|
2232 |
dmsc currentIndex: 1. |
|
2233 |
||
2234 |
dmsc processW. |
|
2235 |
||
2236 |
self should: [ dmsc primaryTranslation = 'A' ]. |
|
2237 |
self should: [ dmsc secondaryTranslation = 'A' ]. |
|
2238 |
self should: [ dmsc skipCount = 0 ]. |
|
2239 |
! |
|
2240 |
||
2241 |
testProcessW3 |
|
2242 |
dmsc inputKey: 'Arnow'. |
|
2243 |
self should: [ dmsc inputKey = 'ARNOW' ]. |
|
2244 |
||
2245 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2246 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2247 |
self should: [ dmsc skipCount = 0 ]. |
|
2248 |
dmsc currentIndex: 5. |
|
2249 |
||
2250 |
dmsc processW. |
|
2251 |
||
2252 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2253 |
self should: [ dmsc secondaryTranslation = 'F' ]. |
|
2254 |
self should: [ dmsc skipCount = 0 ]. |
|
2255 |
! |
|
2256 |
||
2257 |
testProcessW4 |
|
2258 |
dmsc inputKey: 'belewski'. |
|
2259 |
self should: [ dmsc inputKey = 'BELEWSKI' ]. |
|
2260 |
||
2261 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2262 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2263 |
self should: [ dmsc skipCount = 0 ]. |
|
2264 |
dmsc currentIndex: 5. |
|
2265 |
||
2266 |
dmsc processW. |
|
2267 |
||
2268 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2269 |
self should: [ dmsc secondaryTranslation = 'F' ]. |
|
2270 |
self should: [ dmsc skipCount = 0 ]. |
|
2271 |
! |
|
2272 |
||
2273 |
testProcessW5 |
|
2274 |
dmsc inputKey: 'schewell'. |
|
2275 |
self should: [ dmsc inputKey = 'SCHEWELL' ]. |
|
2276 |
||
2277 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2278 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2279 |
self should: [ dmsc skipCount = 0 ]. |
|
2280 |
dmsc currentIndex: 5. |
|
2281 |
||
2282 |
dmsc processW. |
|
2283 |
||
2284 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2285 |
self should: [ dmsc secondaryTranslation = 'F' ]. |
|
2286 |
self should: [ dmsc skipCount = 0 ]. |
|
2287 |
! |
|
2288 |
||
2289 |
testProcessW6 |
|
2290 |
dmsc inputKey: 'filipowicz'. |
|
2291 |
self should: [ dmsc inputKey = 'FILIPOWICZ' ]. |
|
2292 |
||
2293 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2294 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2295 |
self should: [ dmsc skipCount = 0 ]. |
|
2296 |
dmsc currentIndex: 7. |
|
2297 |
||
2298 |
dmsc processW. |
|
2299 |
||
2300 |
self should: [ dmsc primaryTranslation = 'TS' ]. |
|
2301 |
self should: [ dmsc secondaryTranslation = 'FX' ]. |
|
2302 |
self should: [ dmsc skipCount = 3 ]. |
|
2303 |
! |
|
2304 |
||
2305 |
testProcessX |
|
2306 |
dmsc inputKey: 'breaux'. |
|
2307 |
self should: [ dmsc inputKey = 'BREAUX' ]. |
|
2308 |
||
2309 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2310 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2311 |
self should: [ dmsc skipCount = 0 ]. |
|
2312 |
dmsc currentIndex: 6. |
|
2313 |
||
2314 |
dmsc processX. |
|
2315 |
||
2316 |
self should: [ dmsc primaryTranslation = 'KS' ]. |
|
2317 |
self should: [ dmsc secondaryTranslation = 'KS' ]. |
|
2318 |
self should: [ dmsc skipCount = 0 ]. |
|
2319 |
! |
|
2320 |
||
2321 |
testProcessX1 |
|
2322 |
dmsc inputKey: 'bordoux'. |
|
2323 |
self should: [ dmsc inputKey = 'BORDOUX' ]. |
|
2324 |
||
2325 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2326 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2327 |
self should: [ dmsc skipCount = 0 ]. |
|
2328 |
dmsc currentIndex: 7. |
|
2329 |
||
2330 |
dmsc processX. |
|
2331 |
||
2332 |
self should: [ dmsc primaryTranslation = 'KS' ]. |
|
2333 |
self should: [ dmsc secondaryTranslation = 'KS' ]. |
|
2334 |
self should: [ dmsc skipCount = 0 ]. |
|
2335 |
! |
|
2336 |
||
2337 |
testProcessX2 |
|
2338 |
dmsc inputKey: 'shoroxx'. |
|
2339 |
self should: [ dmsc inputKey = 'SHOROXX' ]. |
|
2340 |
||
2341 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2342 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2343 |
self should: [ dmsc skipCount = 0 ]. |
|
2344 |
dmsc currentIndex: 6. |
|
2345 |
||
2346 |
dmsc processX. |
|
2347 |
||
2348 |
self should: [ dmsc primaryTranslation = 'KS' ]. |
|
2349 |
self should: [ dmsc secondaryTranslation = 'KS' ]. |
|
2350 |
self should: [ dmsc skipCount = 1 ]. |
|
2351 |
! |
|
2352 |
||
2353 |
testProcessZ |
|
2354 |
dmsc inputKey: 'zhao'. |
|
2355 |
self should: [ dmsc inputKey = 'ZHAO' ]. |
|
2356 |
||
2357 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2358 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2359 |
self should: [ dmsc skipCount = 0 ]. |
|
2360 |
dmsc currentIndex: 1. |
|
2361 |
||
2362 |
dmsc processZ. |
|
2363 |
||
2364 |
self should: [ dmsc primaryTranslation = 'J' ]. |
|
2365 |
self should: [ dmsc secondaryTranslation = 'J' ]. |
|
2366 |
self should: [ dmsc skipCount = 1 ]. |
|
2367 |
! |
|
2368 |
||
2369 |
testProcessZ1 |
|
2370 |
dmsc inputKey: 'pizza'. |
|
2371 |
self should: [ dmsc inputKey = 'PIZZA' ]. |
|
2372 |
||
2373 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2374 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2375 |
self should: [ dmsc skipCount = 0 ]. |
|
2376 |
dmsc currentIndex: 3. |
|
2377 |
||
2378 |
dmsc processZ. |
|
2379 |
||
2380 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
2381 |
self should: [ dmsc secondaryTranslation = 'TS' ]. |
|
2382 |
self should: [ dmsc skipCount = 1 ]. |
|
2383 |
! |
|
2384 |
||
2385 |
testProcessZ2 |
|
2386 |
dmsc inputKey: 'wkicz'. |
|
2387 |
self should: [ dmsc inputKey = 'WKICZ' ]. |
|
2388 |
||
2389 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2390 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2391 |
self should: [ dmsc skipCount = 0 ]. |
|
2392 |
dmsc currentIndex: 5. |
|
2393 |
||
2394 |
dmsc processZ. |
|
2395 |
||
2396 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
2397 |
self should: [ dmsc secondaryTranslation = 'TS' ]. |
|
2398 |
self should: [ dmsc skipCount = 0 ]. |
|
2399 |
! |
|
2400 |
||
2401 |
testProcessZ3 |
|
2402 |
dmsc inputKey: 'zoo'. |
|
2403 |
self should: [ dmsc inputKey = 'ZOO' ]. |
|
2404 |
||
2405 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2406 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2407 |
self should: [ dmsc skipCount = 0 ]. |
|
2408 |
dmsc currentIndex: 1. |
|
2409 |
||
2410 |
dmsc processZ. |
|
2411 |
||
2412 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
2413 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
2414 |
self should: [ dmsc skipCount = 0 ]. |
|
2415 |
! |
|
2416 |
||
2417 |
testProcessZ4 |
|
2418 |
dmsc inputKey: 'zzyxx'. |
|
2419 |
self should: [ dmsc inputKey = 'ZZYXX' ]. |
|
2420 |
||
2421 |
self should: [ dmsc primaryTranslation = '' ]. |
|
2422 |
self should: [ dmsc secondaryTranslation = '' ]. |
|
2423 |
self should: [ dmsc skipCount = 0 ]. |
|
2424 |
dmsc currentIndex: 1. |
|
2425 |
||
2426 |
dmsc processZ. |
|
2427 |
||
2428 |
self should: [ dmsc primaryTranslation = 'S' ]. |
|
2429 |
self should: [ dmsc secondaryTranslation = 'S' ]. |
|
2430 |
self should: [ dmsc skipCount = 1 ]. |
|
2431 |
! ! |
|
2432 |
||
2433 |
!DoubleMetaphoneStringComparatorTest class methodsFor:'documentation'! |
|
2434 |
||
2435 |
version |
|
2436 |
^ '$Header$' |
|
2437 |
! ! |