/ Check-in [08165253]
Login

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

Overview
Comment:Adjust ICU tests to account for recent changes in the official Unicode definition of whitespace.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0816525386ac51454b7b09a507e45b6a2cb8bf6e
User & Date: drh 2015-06-15 16:40:38
Context
2015-06-16
16:39
Ensure that the CREATE TABLE AS statement correctly undoes partial changes to the sqlite_master table if the SELECT on the right-hand side aborts with an error. Fix for ticket [873cae2b6e25b] check-in: 400e025e user: drh tags: trunk
2015-06-15
16:40
Adjust ICU tests to account for recent changes in the official Unicode definition of whitespace. check-in: 08165253 user: drh tags: trunk
16:09
Fix a harmless comment typo. No code changes. check-in: ae687652 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/fts4unicode.test.

   358    358   
   359    359   set tokenizers [list unicode61]
   360    360   ifcapable icu { lappend tokenizers icu }
   361    361   
   362    362   # Some tests to check that the tokenizers can both identify white-space 
   363    363   # codepoints. All codepoints tested below are of type "Zs" in the
   364    364   # UnicodeData.txt file.
          365  +#
          366  +# Note that codepoint 6158 has changed from Zs to Cf in recent versions
          367  +# of UnicodeData.txt.  So take that into account for the "icu" tests.
          368  +#
   365    369   foreach T $tokenizers {
   366    370     do_isspace_test 6.$T.1 $T    32
   367    371     do_isspace_test 6.$T.2 $T    160
   368    372     do_isspace_test 6.$T.3 $T    5760
   369         -  do_isspace_test 6.$T.4 $T    6158
          373  +  if {$T!="icu"} {
          374  +    do_isspace_test 6.$T.4 $T    6158
          375  +  }
   370    376     do_isspace_test 6.$T.5 $T    8192
   371    377     do_isspace_test 6.$T.6 $T    8193
   372    378     do_isspace_test 6.$T.7 $T    8194
   373    379     do_isspace_test 6.$T.8 $T    8195
   374    380     do_isspace_test 6.$T.9 $T    8196
   375    381     do_isspace_test 6.$T.10 $T    8197
   376    382     do_isspace_test 6.$T.11 $T    8198
................................................................................
   378    384     do_isspace_test 6.$T.13 $T    8200
   379    385     do_isspace_test 6.$T.14 $T    8201
   380    386     do_isspace_test 6.$T.15 $T    8202
   381    387     do_isspace_test 6.$T.16 $T    8239
   382    388     do_isspace_test 6.$T.17 $T    8287
   383    389     do_isspace_test 6.$T.18 $T   12288
   384    390   
   385         -  do_isspace_test 6.$T.19 $T   {32 160 5760 6158}
          391  +  if {$T!="icu"} {
          392  +    do_isspace_test 6.$T.19 $T   {32 160 5760 6158}
          393  +  } else {
          394  +    do_isspace_test 6.$T.19 $T   {32 160 5760 8192}
          395  +  }
   386    396     do_isspace_test 6.$T.20 $T   {8192 8193 8194 8195}
   387    397     do_isspace_test 6.$T.21 $T   {8196 8197 8198 8199}
   388    398     do_isspace_test 6.$T.22 $T   {8200 8201 8202 8239}
   389    399     do_isspace_test 6.$T.23 $T   {8287 12288}
   390    400   }
   391    401   
   392    402   #-------------------------------------------------------------------------