diff --git a/webvtt_test.go b/webvtt_test.go index f6db966..03993dd 100644 --- a/webvtt_test.go +++ b/webvtt_test.go @@ -176,12 +176,15 @@ func TestWebVTTTags(t *testing.T) { Joe's words are red in italic 00:04:00.000 --> 00:05:00.000 - Text here` + Text here + + 00:05:00.000 --> 00:06:00.000 + Joe says something Bob says something` s, err := astisub.ReadFromWebVTT(strings.NewReader(testData)) require.NoError(t, err) - require.Len(t, s.Items, 4) + require.Len(t, s.Items, 5) b := &bytes.Buffer{} err = s.WriteToWebVTT(b) @@ -203,5 +206,9 @@ func TestWebVTTTags(t *testing.T) { 4 00:04:00.000 --> 00:05:00.000 Text here + +5 +00:05:00.000 --> 00:06:00.000 +Joe says something Bob says something `, b.String()) }