Fix
This commit is contained in:
1 parent
486502852e
commit
0e48ea427b
23 files changed
+386
-78
No files matched your search
@@ -335,7 +335,10 @@ func TestStreamCSVUsesProductSeqWithoutCollecting(t *testing.T) {
|
||||
if n != 1 {
|
||||
t.Fatalf("count=%d", n)
|
||||
}
|
||||
lines := strings.Split(strings.TrimSpace(buf.String()), "\n")
|
||||
if !strings.HasPrefix(buf.String(), "\ufeff") {
|
||||
t.Fatalf("downloadable CSV must start with UTF-8 BOM: %q", buf.Bytes()[:min(buf.Len(), 8)])
|
||||
}
|
||||
lines := strings.Split(strings.TrimSpace(strings.TrimPrefix(buf.String(), "\ufeff")), "\n")
|
||||
if len(lines) != 2 {
|
||||
t.Fatalf("lines=%v", lines)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user