Skip to content

Commit 4b2c3ac

Browse files
committed
fix test print format
1 parent f70b779 commit 4b2c3ac

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

driver_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func TestCRUD(t *testing.T) {
118118
if rows.Next() {
119119
rows.Scan(&out)
120120
if true != out {
121-
t.Errorf("true != %d", out)
121+
t.Errorf("true != %t", out)
122122
}
123123

124124
if rows.Next() {
@@ -143,7 +143,7 @@ func TestCRUD(t *testing.T) {
143143
if rows.Next() {
144144
rows.Scan(&out)
145145
if false != out {
146-
t.Errorf("false != %d", out)
146+
t.Errorf("false != %t", out)
147147
}
148148

149149
if rows.Next() {
@@ -262,7 +262,7 @@ func TestFloat(t *testing.T) {
262262
if rows.Next() {
263263
rows.Scan(&out)
264264
if in != out {
265-
t.Errorf("%s: %d != %d", v, in, out)
265+
t.Errorf("%s: %g != %g", v, in, out)
266266
}
267267
} else {
268268
t.Errorf("%s: no data", v)
@@ -502,7 +502,7 @@ func TestCloseStmtBeforeRows(t *testing.T) {
502502
t.Fatalf("Error on rows.Scan(): %v", err)
503503
}
504504
if out != true {
505-
t.Errorf("true != %d", out)
505+
t.Errorf("true != %t", out)
506506
}
507507
}
508508
}
@@ -557,7 +557,7 @@ func TestStmtMultiRows(t *testing.T) {
557557
t.Fatalf("Error on rows.Scan(): %v", err)
558558
}
559559
if out != true {
560-
t.Errorf("true != %d", out)
560+
t.Errorf("true != %t", out)
561561
}
562562
}
563563

@@ -574,7 +574,7 @@ func TestStmtMultiRows(t *testing.T) {
574574
t.Fatalf("Error on rows.Scan(): %v", err)
575575
}
576576
if out != true {
577-
t.Errorf("true != %d", out)
577+
t.Errorf("true != %t", out)
578578
}
579579
}
580580

@@ -592,7 +592,7 @@ func TestStmtMultiRows(t *testing.T) {
592592
t.Fatalf("Error on rows.Scan(): %v", err)
593593
}
594594
if out != false {
595-
t.Errorf("false != %d", out)
595+
t.Errorf("false != %t", out)
596596
}
597597

598598
if rows1.Next() {
@@ -617,7 +617,7 @@ func TestStmtMultiRows(t *testing.T) {
617617
t.Fatalf("Error on rows.Scan(): %v", err)
618618
}
619619
if out != false {
620-
t.Errorf("false != %d", out)
620+
t.Errorf("false != %t", out)
621621
}
622622

623623
if rows2.Next() {

0 commit comments

Comments
 (0)