Overview
| SHA1 Hash: | 46f7c9301eae7a4d80a5282aa8538a500639755b |
|---|---|
| Date: | 2013-01-26 19:26:11 |
| User: | drh |
| Comment: | Add a single test case to fts4unicode.test to verify that title-case maps to lower case. |
Tags And Properties
- branch=branch-3.7.15 inherited from [bae528f486]
- sym-branch-3.7.15 inherited from [bae528f486]
Changes
Changes to test/fts4unicode.test
40 append sql "'" 40 append sql "'" 41 } 41 } 42 append sql ")" 42 append sql ")" 43 uplevel [list do_execsql_test $tn $sql [list [list {*}$res]]] 43 uplevel [list do_execsql_test $tn $sql [list [list {*}$res]]] 44 } 44 } 45 45 46 do_unicode_token_test 1.0 {a B c D} {0 a a 1 b B 2 c c 3 d D} 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 ü Ü} | 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} | 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 # 0x00DF is a small "sharp s". 0x1E9E is a capital sharp s. 50 # 0x00DF is a small "sharp s". 0x1E9E is a capital sharp s. 51 do_unicode_token_test 1.3 "\uDF" "0 \uDF \uDF" 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 do_unicode_token_test 1.5 "\u1E9E" "0 \uDF \u1E9E" 53 do_unicode_token_test 1.5 "\u1E9E" "0 \uDF \u1E9E" 54 54 55 do_unicode_token_test 1.6 "The quick brown fox" { 55 do_unicode_token_test 1.6 "The quick brown fox" { 56 0 the The 1 quick quick 2 brown brown 3 fox fox 56 0 the The 1 quick quick 2 brown brown 3 fox fox 57 } 57 } 58 do_unicode_token_test 1.7 "The\u00bfquick\u224ebrown\u2263fox" { 58 do_unicode_token_test 1.7 "The\u00bfquick\u224ebrown\u2263fox" { 59 0 the The 1 quick quick 2 brown brown 3 fox fox 59 0 the The 1 quick quick 2 brown brown 3 fox fox 60 } 60 } 61 61 62 do_unicode_token_test2 1.8 {a B c D} {0 a a 1 b B 2 c c 3 d D} 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 Ü} | 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} | 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 # Check that diacritics are removed if remove_diacritics=1 is specified. 66 # Check that diacritics are removed if remove_diacritics=1 is specified. 67 # And that they do not break tokens. 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 set docs [list { 75 set docs [list { 73 Enhance the INSERT syntax to allow multiple rows to be inserted via the 76 Enhance the INSERT syntax to allow multiple rows to be inserted via the 74 VALUES clause. 77 VALUES clause. 75 } { 78 } { ................................................................................................................................................................................ 379 do_isspace_test 6.$T.19 $T {8196 8197 8198 8199} 382 do_isspace_test 6.$T.19 $T {8196 8197 8198 8199} 380 do_isspace_test 6.$T.19 $T {8200 8201 8202 8239} 383 do_isspace_test 6.$T.19 $T {8200 8201 8202 8239} 381 do_isspace_test 6.$T.19 $T {8287 12288} 384 do_isspace_test 6.$T.19 $T {8287 12288} 382 } 385 } 383 386 384 387 385 finish_test 388 finish_test 386 < 387 <