From 6bbc33b9e998af7ee45cca86e1290474603dff48 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 12 Aug 2024 15:42:56 -0300 Subject: Build with "go tool" and hackishly bundle code from same package into one file each --- sqlite3_opt_math_functions_test.go | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 sqlite3_opt_math_functions_test.go (limited to 'sqlite3_opt_math_functions_test.go') diff --git a/sqlite3_opt_math_functions_test.go b/sqlite3_opt_math_functions_test.go deleted file mode 100644 index 09dbd8d..0000000 --- a/sqlite3_opt_math_functions_test.go +++ /dev/null @@ -1,30 +0,0 @@ -//go:build sqlite_math_functions -// +build sqlite_math_functions - -package sqlite3 - -import ( - "database/sql" - "testing" -) - -func TestMathFunctions(t *testing.T) { - db, err := sql.Open("sqlite3", ":memory:") - if err != nil { - t.Fatal("Failed to open database:", err) - } - defer db.Close() - - queries := []string{ - `SELECT acos(1)`, - `SELECT log(10, 100)`, - `SELECT power(2, 2)`, - } - - for _, query := range queries { - var result float64 - if err := db.QueryRow(query).Scan(&result); err != nil { - t.Errorf("invoking math function query %q: %v", query, err) - } - } -} -- cgit v1.2.3