3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #***********************************************************************
11 # This file implements regression tests for SQLite library. The
12 # focus of this file is testing expressions.
15 set testdir [file dirname $argv0]
16 source $testdir/tester.tcl
21 INSERT INTO t0(c0) VALUES ('val');
25 SELECT * FROM t0 WHERE (
26 ( (0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) IS 0
30 do_execsql_test 1.2.1 {
32 ( (0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) IS 0
36 do_execsql_test 1.2.2 {
38 ( (0 IS NOT FALSE) OR NOT (0 IS 0 OR (t0.c0 = 1)) ) IS 0
43 SELECT ( (0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) FROM t0
46 do_execsql_test 1.4.1 {
47 SELECT (0 IS NOT FALSE) FROM t0
49 do_execsql_test 1.4.2 {
50 SELECT NOT (0 IS FALSE OR (t0.c0 = 1)) FROM t0