From f3ee355fa1c4107c8f6d73e9218fc66540773bff Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Wed, 10 Sep 2025 14:14:46 +0300 Subject: [PATCH] testing/compare.test: Clean up tests by using in-memory database Suggested by Jussi --- testing/compare.test | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/testing/compare.test b/testing/compare.test index dd09ffb92..ab262aed0 100644 --- a/testing/compare.test +++ b/testing/compare.test @@ -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; -} {} \ No newline at end of file +} {-1} \ No newline at end of file