mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Implement Not
This commit is contained in:
parent
876788588b
commit
e616bd5361
6 changed files with 59 additions and 4 deletions
|
@ -615,6 +615,22 @@ do_execsql_test bitwise-not-zero {
|
|||
SELECT ~0
|
||||
} {-1}
|
||||
|
||||
foreach {testname lhs ans} {
|
||||
int-1 1 0
|
||||
int-2 2 0
|
||||
int-3 0 1
|
||||
float-1 1.0 0
|
||||
float-2 2.0 0
|
||||
float-3 0.0 1
|
||||
text 'a' 1
|
||||
text-int-1 '0' 1
|
||||
text-int-2 '1' 0
|
||||
text-float-1 '1.0' 0
|
||||
text-float-2 '0.0' 1
|
||||
null NULL {}
|
||||
} {
|
||||
do_execsql_test boolean-not "SELECT not $lhs" $::ans
|
||||
}
|
||||
|
||||
do_execsql_test_tolerance pi {
|
||||
SELECT pi()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue