|
@@ -90,6 +90,18 @@ func TestUpdatePlaylistBySection(t *testing.T) {
|
90
|
90
|
if len(playlistEntries) != 4 {
|
91
|
91
|
t.Error("Should have found 4 playlistEntries, got", len(playlistEntries))
|
92
|
92
|
}
|
|
93
|
+ if playlistEntries[0] != "ID1" {
|
|
94
|
+ t.Error("Should have been ID1, got ", playlistEntries[0])
|
|
95
|
+ }
|
|
96
|
+ if playlistEntries[1] != "ID2" {
|
|
97
|
+ t.Error("Should have been ID2, got ", playlistEntries[1])
|
|
98
|
+ }
|
|
99
|
+ if playlistEntries[2] != "ID3" {
|
|
100
|
+ t.Error("Should have been ID3, got ", playlistEntries[2])
|
|
101
|
+ }
|
|
102
|
+ if playlistEntries[3] != "ID4" {
|
|
103
|
+ t.Error("Should have been ID4, got ", playlistEntries[3])
|
|
104
|
+ }
|
93
|
105
|
}
|
94
|
106
|
func TestUpdatePlaylistBySectionUnknownSection(t *testing.T) {
|
95
|
107
|
initTestCase(t)
|