From: drh Date: Wed, 23 Sep 2009 13:39:56 +0000 (+0000) Subject: Add test cases for the IS and IS NOT operator. X-Git-Tag: fts3-refactor~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f94702f20ddc53d455d384f0c06ceb8db314a1f;p=thirdparty%2Fsqlite.git Add test cases for the IS and IS NOT operator. FossilOrigin-Name: 101ed58cf4a1dfe53031b98cfc7ed01e86b4c7b6 --- diff --git a/manifest b/manifest index 0849f799c3..b8ee3bc680 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,8 @@ -C Add\sextra\stests\sfor\sforeign\skey\ssupport. -D 2009-09-23T12:06:52 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +C Add\stest\scases\sfor\sthe\sIS\sand\sIS\sNOT\soperator. +D 2009-09-23T13:39:57 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0 F Makefile.in 4ca3f1dd6efa2075bcb27f4dc43eef749877740d F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654 @@ -326,7 +329,7 @@ F test/eval.test bc269c365ba877554948441e91ad5373f9f91be3 F test/exclusive.test 4d8a112d6c5bf52014e9383c25ff193cc4f67185 F test/exclusive2.test 6bdf254770a843c2933b54bee9ed239934f0a183 F test/exec.test e949714dc127eaa5ecc7d723efec1ec27118fdd7 -F test/expr.test 80f3cf99f786ffbac19d2b0083673e7fc797030f +F test/expr.test 9f521ae22f00e074959f72ce2e55d46b9ed23f68 F test/filectrl.test 8923a6dc7630f31c8a9dd3d3d740aa0922df7bf8 F test/filefmt.test 84e3d0fe9f12d0d2ac852465c6f8450aea0d6f43 F test/fkey1.test 01c7de578e11747e720c2d9aeef27f239853c4da @@ -753,7 +756,14 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f -P 540c2d18e14c277b55f95729fbafc04ca66466b2 -R b1701f6c56797f01143914d74ba130c0 -U dan -Z 96e574304d094136cffd4148dd456947 +P 7d086afe69da4d03bd1de5408626858273f91e8f +R 35b5b657e12fcb3cbc987e191dc83216 +U drh +Z e9ed2d16226d496aaa308a9dcf1b2040 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.6 (GNU/Linux) + +iD8DBQFKuiUwoxKgR168RlERAu8gAKCKUlvtbsebzIAVA2IzXEFkaTgAIACdF6N7 +kr8Bdbz7nMMRJn6r4uB+tVc= +=gtYM +-----END PGP SIGNATURE----- diff --git a/manifest.uuid b/manifest.uuid index df45e300db..5e83b34314 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -7d086afe69da4d03bd1de5408626858273f91e8f \ No newline at end of file +101ed58cf4a1dfe53031b98cfc7ed01e86b4c7b6 \ No newline at end of file diff --git a/test/expr.test b/test/expr.test index 1d624d7b13..87ee8ed3ca 100644 --- a/test/expr.test +++ b/test/expr.test @@ -165,6 +165,31 @@ if {[working_64bit_int]} { test_expr expr-1.110 {i1=0} {-9223372036854775807/-1} 9223372036854775807 } +test_expr expr-1.111 {i1=NULL, i2=8} {i1 IS i2} 0 +test_expr expr-1.112 {i1=NULL, i2=NULL} {i1 IS i2} 1 +test_expr expr-1.113 {i1=6, i2=NULL} {i1 IS i2} 0 +test_expr expr-1.114 {i1=6, i2=6} {i1 IS i2} 1 +test_expr expr-1.115 {i1=NULL, i2=8} \ + {CASE WHEN i1 IS i2 THEN 'yes' ELSE 'no' END} no +test_expr expr-1.116 {i1=NULL, i2=NULL} \ + {CASE WHEN i1 IS i2 THEN 'yes' ELSE 'no' END} yes +test_expr expr-1.117 {i1=6, i2=NULL} \ + {CASE WHEN i1 IS i2 THEN 'yes' ELSE 'no' END} no +test_expr expr-1.118 {i1=8, i2=8} \ + {CASE WHEN i1 IS i2 THEN 'yes' ELSE 'no' END} yes +test_expr expr-1.119 {i1=NULL, i2=8} {i1 IS NOT i2} 1 +test_expr expr-1.120 {i1=NULL, i2=NULL} {i1 IS NOT i2} 0 +test_expr expr-1.121 {i1=6, i2=NULL} {i1 IS NOT i2} 1 +test_expr expr-1.122 {i1=6, i2=6} {i1 IS NOT i2} 0 +test_expr expr-1.123 {i1=NULL, i2=8} \ + {CASE WHEN i1 IS NOT i2 THEN 'yes' ELSE 'no' END} yes +test_expr expr-1.124 {i1=NULL, i2=NULL} \ + {CASE WHEN i1 IS NOT i2 THEN 'yes' ELSE 'no' END} no +test_expr expr-1.125 {i1=6, i2=NULL} \ + {CASE WHEN i1 IS NOT i2 THEN 'yes' ELSE 'no' END} yes +test_expr expr-1.126 {i1=8, i2=8} \ + {CASE WHEN i1 IS NOT i2 THEN 'yes' ELSE 'no' END} no + ifcapable floatingpoint { test_expr expr-2.1 {r1=1.23, r2=2.34} {r1+r2} 3.57 test_expr expr-2.2 {r1=1.23, r2=2.34} {r1-r2} -1.11