This commit is contained in:
greeneclipse committed 2026-10-20 17:03:09 +02:00
1 parent 486502852e
commit 0e48ea427b
23 files changed
+386 -78

No files matched your search

+4 -1
View File
@@ -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)
}