Skip to content

Commit 9369e21

Browse files
committed
tests - headers with maxee
1 parent 5ee3337 commit 9369e21

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

phredsort_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,19 @@ func TestWriteRecord(t *testing.T) {
341341
wantWrite: true,
342342
wantHeader: "test4",
343343
},
344+
{
345+
name: "Header with maxee metric",
346+
record: createTestRecord("test5", "ACGT", "IIII"),
347+
quality: 30.0,
348+
minQualFilter: 20.0,
349+
maxQualFilter: 40.0,
350+
headerMetrics: []HeaderMetric{
351+
{Name: "maxee", IsLength: false},
352+
{Name: "length", IsLength: true},
353+
},
354+
wantWrite: true,
355+
wantHeader: "test5 maxee=0.000400 length=4",
356+
},
344357
{
345358
name: "Header with meep metric",
346359
record: createTestRecord("test5", "ACGT", "IIII"),

0 commit comments

Comments
 (0)