Debian Codegraph @

contrib/fuzzystrmatch/expected/fuzzystrmatch_utf8.out

raw
1 /*
2 * This test must be run in a database with UTF-8 encoding,
3 * because other encodings don't support all the characters used.
4 */
5 SELECT getdatabaseencoding() <> 'UTF8'
6 AS skip_test \gset
7 \if :skip_test
8 \quit
9 \endif
10 set client_encoding = utf8;
11 -- CREATE EXTENSION IF NOT EXISTS fuzzystrmatch;
12 -- Accents
13 SELECT daitch_mokotoff('Müller');
14 daitch_mokotoff
15 -----------------
16 {689000}
17 (1 row)
18
19 SELECT daitch_mokotoff('Schäfer');
20 daitch_mokotoff
21 -----------------
22 {479000}
23 (1 row)
24
25 SELECT daitch_mokotoff('Straßburg');
26 daitch_mokotoff
27 -----------------
28 {294795}
29 (1 row)
30
31 SELECT daitch_mokotoff('Éregon');
32 daitch_mokotoff
33 -----------------
34 {095600}
35 (1 row)
36
37 -- Special characters added at https://www.jewishgen.org/InfoFiles/Soundex.html
38 SELECT daitch_mokotoff('gąszczu');
39 daitch_mokotoff
40 -----------------
41 {564000,540000}
42 (1 row)
43
44 SELECT daitch_mokotoff('brzęczy');
45 daitch_mokotoff
46 -------------------------------
47 {794640,794400,746400,744000}
48 (1 row)
49
50 SELECT daitch_mokotoff('ţamas');
51 daitch_mokotoff
52 -----------------
53 {364000,464000}
54 (1 row)
55
56 SELECT daitch_mokotoff('țamas');
57 daitch_mokotoff
58 -----------------
59 {364000,464000}
60 (1 row)
61