1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Test cases intended to improve coverage of main.c. (CVS 1763)

FossilOrigin-Name: 15a084e9ea14d093f75c54a321f146c18f4453d7
This commit is contained in:
danielk1977
2004-06-29 13:18:23 +00:00
parent 779c6a0647
commit 312d6b36e3
8 changed files with 285 additions and 51 deletions

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing built-in functions.
#
# $Id: func.test,v 1.26 2004/06/24 00:20:05 danielk1977 Exp $
# $Id: func.test,v 1.27 2004/06/29 13:18:24 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -440,4 +440,16 @@ do_test func-13.7 {
lappend res [sqlite3_finalize $STMT]
} {{0 0} {1 0} SQLITE_OK}
# Make sure that a function with a very long name is rejected
do_test func-14.1 {
catch {
db function [string repeat X 254] {return "hello"}
}
} {0}
do_test func-14.2 {
catch {
db function [string repeat X 256] {return "hello"}
}
} {1}
finish_test