Fixed BuildQuery test
This commit is contained in:
parent
8a7926664c
commit
d0b494600e
2 changed files with 3 additions and 2 deletions
|
@ -1 +1 @@
|
|||
SELECT * FROM "t"
|
||||
SELECT * FROM "t";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package boil
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"database/sql"
|
||||
"flag"
|
||||
"fmt"
|
||||
|
@ -46,7 +47,7 @@ func TestBuildQuery(t *testing.T) {
|
|||
t.Fatalf("Failed to read golden file %q: %v", filename, err)
|
||||
}
|
||||
|
||||
if string(byt) != out {
|
||||
if string(bytes.TrimSpace(byt)) != out {
|
||||
t.Errorf("[%02d] Test failed:\nWant:\n%s\nGot:\n%s", i, byt, out)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue