Esempio n. 1
0
func TestSubtitlesFirst(t *testing.T) {
	subtitles := opensubtitles.Subtitles{
		opensubtitles.Subtitle{},
		opensubtitles.Subtitle{},
	}

	assert.Len(t, subtitles, 2)
	assert.NotNil(t, subtitles.First(), 0)
}
Esempio n. 2
0
func TestGetFirst(t *testing.T) {
	subtitles := opensubtitles.Subtitles{}

	assert.Len(t, subtitles, 0)
	assert.Nil(t, subtitles.First())
}