SQLite

Check-in [5964616d]
Login

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

Overview
Comment:Fix test cases added for [4b4f33d791fe4318] so that they also work when compiling with ICU support. Forum post 2ca8a09a7e
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5964616dc9de9323fddfede0ded29ee135498c8760017ce1158461f596fe6914
User & Date: drh 2025-02-14 10:28:28
Original Comment: Fix test cases added for [d7b90d92ffbfc61f] so that they also work when compiling with ICU support. Forum post 2ca8a09a7e
Context
2025-02-14
16:42
ICU config support: add more details to error messages and correct a typo which would cause a configure crash if --with-icu-config=X refered to a non-executable X. (check-in: ff508926 user: stephan tags: trunk)
10:28
Fix test cases added for [4b4f33d791fe4318] so that they also work when compiling with ICU support. Forum post 2ca8a09a7e (check-in: 5964616d user: drh tags: trunk)
2025-02-13
16:20
When using the --out-implib build option, install the generated .dll.a file to PREFIX/lib. (check-in: 0dadea0e user: stephan tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to test/like3.test.
300
301
302
303
304
305
306

307
308
309
310
311







312
313
314
315
316
317
318
    SELECT * FROM Example WHERE word >= char(0x307F) AND word < char(0x3080);
  } {み}
}

#-------------------------------------------------------------------------
reset_db


foreach enc {
  UTF-8
  UTF-16le 
  UTF-16be
} {







  foreach {tn expr} {
    1 "CAST (X'FF' AS TEXT)"
    2 "CAST (X'FFBF' AS TEXT)"
    3 "CAST (X'FFBFBF' AS TEXT)"
    4 "CAST (X'FFBFBFBF' AS TEXT)"

    5 "'abc' || CAST (X'FF' AS TEXT)"







>





>
>
>
>
>
>
>







300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
    SELECT * FROM Example WHERE word >= char(0x307F) AND word < char(0x3080);
  } {み}
}

#-------------------------------------------------------------------------
reset_db

# See forum thread https://sqlite.org/forum/info/d7b90d92ffbfc61f
foreach enc {
  UTF-8
  UTF-16le 
  UTF-16be
} {
  ifcapable icu {
    if {$enc=="UTF-8"} {
      # The invalid UTF8 used in these tests is incompatible with ICU
      # https://sqlite.org/forum/forumpost/2ca8a09a7e
      continue
    }
  }
  foreach {tn expr} {
    1 "CAST (X'FF' AS TEXT)"
    2 "CAST (X'FFBF' AS TEXT)"
    3 "CAST (X'FFBFBF' AS TEXT)"
    4 "CAST (X'FFBFBFBF' AS TEXT)"

    5 "'abc' || CAST (X'FF' AS TEXT)"