Better tests.

This commit is contained in:
Nuno Cruces
2025-07-17 01:11:16 +01:00
parent b21c69dc1f
commit 9719d4b0e3
14 changed files with 220 additions and 177 deletions

View File

@@ -92,7 +92,9 @@ func TestRegister(t *testing.T) {
}
defer stmt.Close()
if stmt.Step() {
if !stmt.Step() {
t.Fatal(stmt.Err())
} else {
x := stmt.ColumnInt(0)
y := stmt.ColumnInt(1)
hypot := stmt.ColumnInt(2)