/ Check-in [74126bf4]
Login

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

Overview
Comment:Additional test cases. (CVS 4806)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:74126bf4e605dc875adbf5a0ee83bf8112891e35
User & Date: drh 2008-02-21 21:30:07
Context
2008-02-23
21:55
Fix a bug in the LIKE optimizer that occurs when the last character before the wildcard is an upper-case 'Z'. Ticket #2959. (CVS 4807) check-in: 610574b2 user: drh tags: trunk
2008-02-21
21:30
Additional test cases. (CVS 4806) check-in: 74126bf4 user: drh tags: trunk
20:40
Accept "Z" as the zulu timezone at the end of date strings. (CVS 4805) check-in: 4c9a7b42 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/capi3.test.

     7      7   #    May you find forgiveness for yourself and forgive others.
     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11     11   # This file implements regression tests for SQLite library.  The
    12     12   # focus of this script testing the callback-free C/C++ API.
    13     13   #
    14         -# $Id: capi3.test,v 1.58 2008/01/22 01:48:09 drh Exp $
           14  +# $Id: capi3.test,v 1.59 2008/02/21 21:30:07 drh Exp $
    15     15   #
    16     16   
    17     17   set testdir [file dirname $argv0]
    18     18   source $testdir/tester.tcl
    19     19   
    20     20   # Return the UTF-16 representation of the supplied UTF-8 string $str.
    21     21   # If $nt is true, append two 0x00 bytes as a nul terminator.
................................................................................
   159    159     sqlite3_errmsg $db2
   160    160   } {library routine called out of sequence}
   161    161   ifcapable {utf16} {
   162    162     do_test capi3-3.6.3-misuse {
   163    163       utf8 [sqlite3_errmsg16 $db2]
   164    164     } {library routine called out of sequence}
   165    165   }
          166  +
          167  +do_test capi3-3.7 {
          168  +  set db2 [sqlite3_open]
          169  +  sqlite3_errcode $db2
          170  +} {SQLITE_OK}
          171  +do_test capi3-3.8 {
          172  +  sqlite3_close $db2
          173  +} {SQLITE_OK}
   166    174   
   167    175   # rename sqlite3_open ""
   168    176   # rename sqlite3_open_old sqlite3_open
   169    177   
   170    178   ifcapable {utf16} {
   171    179   do_test capi3-4.1 {
   172    180     set db2 [sqlite3_open16 [utf16 test.db] {}]