/ Check-in [955a9459]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add a single test case to fts4unicode.test to verify that title-case maps to lower case.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 955a9459dabad231aa8d6282676975ab7fba244e
User & Date: drh 2013-01-26 19:31:42
Context
2013-01-28
18:18
Cause the command-line shell to issue an error message if you give something that does not look like a boolean value to a dot-command that wants a boolean argument. check-in: b4d94947 user: drh tags: trunk
2013-01-26
19:31
Add a single test case to fts4unicode.test to verify that title-case maps to lower case. check-in: 955a9459 user: drh tags: trunk
2013-01-25
19:11
Fix the test_spellfix.c extension so that it can be made loadable at run-time. Add spellfix to the shell when building using the build-shell.sh script. check-in: 7813b17d user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/fts4unicode.test.

    40     40       append sql "'"
    41     41     }
    42     42     append sql ")"
    43     43     uplevel [list do_execsql_test $tn $sql [list [list {*}$res]]]
    44     44   }
    45     45   
    46     46   do_unicode_token_test 1.0 {a B c D} {0 a a 1 b B 2 c c 3 d D}
    47         -do_unicode_token_test 1.1 {  } {0   1   2  }
    48         -do_unicode_token_test 1.2 {xx xx xx} {0 xx xx 1 xx xx 2 xx xx}
           47  +do_unicode_token_test 1.1 {Ä Ö Ü} {0 ä Ä 1 ö Ö 2 ü Ü}
           48  +do_unicode_token_test 1.2 {xÄx xÖx xÜx} {0 xäx xÄx 1 xöx xÖx 2 xüx xÜx}
    49     49   
    50     50   # 0x00DF is a small "sharp s". 0x1E9E is a capital sharp s.
    51     51   do_unicode_token_test 1.3 "\uDF" "0 \uDF \uDF"
    52         -do_unicode_token_test 1.4 "\u1E9E" "0  \u1E9E"
           52  +do_unicode_token_test 1.4 "\u1E9E" "0 ß \u1E9E"
    53     53   do_unicode_token_test 1.5 "\u1E9E" "0 \uDF \u1E9E"
    54     54   
    55     55   do_unicode_token_test 1.6 "The quick brown fox" {
    56     56     0 the The 1 quick quick 2 brown brown 3 fox fox
    57     57   }
    58     58   do_unicode_token_test 1.7 "The\u00bfquick\u224ebrown\u2263fox" {
    59     59     0 the The 1 quick quick 2 brown brown 3 fox fox
    60     60   }
    61     61   
    62     62   do_unicode_token_test2 1.8  {a B c D} {0 a a 1 b B 2 c c 3 d D}
    63         -do_unicode_token_test2 1.9  {  } {0 a  1 o  2 u }
    64         -do_unicode_token_test2 1.10 {xx xx xx} {0 xax xx 1 xox xx 2 xux xx}
           63  +do_unicode_token_test2 1.9  {Ä Ö Ü} {0 a Ä 1 o Ö 2 u Ü}
           64  +do_unicode_token_test2 1.10 {xÄx xÖx xÜx} {0 xax xÄx 1 xox xÖx 2 xux xÜx}
    65     65   
    66     66   # Check that diacritics are removed if remove_diacritics=1 is specified.
    67     67   # And that they do not break tokens.
    68         -do_unicode_token_test2 1.10 "xx\u0301xx" "0 xxxx xx\u301xx"
           68  +do_unicode_token_test2 1.11 "xx\u0301xx" "0 xxxx xx\u301xx"
           69  +
           70  +# Title-case mappings work
           71  +do_unicode_token_test 1.12 "\u01c5" "0 \u01c6 \u01c5"
    69     72   
    70     73   #-------------------------------------------------------------------------
    71     74   #
    72     75   set docs [list {
    73     76     Enhance the INSERT syntax to allow multiple rows to be inserted via the
    74     77     VALUES clause.
    75     78   } {
................................................................................
   379    382     do_isspace_test 6.$T.19 $T   {8196 8197 8198 8199}
   380    383     do_isspace_test 6.$T.19 $T   {8200 8201 8202 8239}
   381    384     do_isspace_test 6.$T.19 $T   {8287 12288}
   382    385   }
   383    386   
   384    387   
   385    388   finish_test
   386         -
   387         -