mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-22 08:25:29 +01:00
testing/compare.test: Clean up tests by using in-memory database
Suggested by Jussi
This commit is contained in:
@@ -256,19 +256,14 @@ foreach {testname lhs rhs ans} {
|
||||
}
|
||||
|
||||
# github-issue: 2957.
|
||||
do_execsql_test compare-int-float-setup {
|
||||
do_execsql_test_on_specific_db {:memory:} compare-int-float-lte-negative-zero {
|
||||
CREATE TABLE t1(i INTEGER);
|
||||
INSERT INTO t1 VALUES (0), (-1), (1);
|
||||
} {}
|
||||
|
||||
do_execsql_test compare-int-float-lte-negative-zero {
|
||||
SELECT i FROM t1 WHERE i <= -0.0 ORDER BY i;
|
||||
} {-1 0}
|
||||
|
||||
do_execsql_test compare-int-float-lt-negative-zero {
|
||||
do_execsql_test_on_specific_db {:memory:} compare-int-float-lt-negative-zero {
|
||||
CREATE TABLE t1(i INTEGER);
|
||||
INSERT INTO t1 VALUES (0), (-1), (1);
|
||||
SELECT i FROM t1 WHERE i < -0.0 ORDER BY i;
|
||||
} {-1}
|
||||
|
||||
do_execsql_test compare-int-float-cleanup {
|
||||
DROP TABLE t1;
|
||||
} {}
|
||||
} {-1}
|
||||
Reference in New Issue
Block a user