From d61fdcd55b4fe42665f3b5c1cf8cd8a784da3716 Mon Sep 17 00:00:00 2001 From: Frederick Akalin Date: Sat, 22 Sep 2018 11:21:59 -0700 Subject: [PATCH] Clean up test --- sqlite3_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sqlite3_test.go b/sqlite3_test.go index 7b16342..309c2c3 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -1999,8 +1999,10 @@ func testNullZeroLengthBlobs(t *testing.T) { if err != nil { t.Fatal(err) } - if b1 == nil || len(b1) > 0 { - t.Errorf("for id=1, got nil; want zero-length slice") + if b1 == nil { + t.Error("for id=1, got nil; want zero-length slice") + } else if len(b1) > 0 { + t.Errorf("for id=1, got %x; want zero-length slice", b1) } }