-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalbum_test.go
More file actions
43 lines (38 loc) · 783 Bytes
/
album_test.go
File metadata and controls
43 lines (38 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package deezer
import (
"encoding/json"
"fmt"
"testing"
)
func TestGetAlbumGet(t *testing.T) {
result, err := GetAlbum(6575789)
if err != nil {
t.Fatal(err)
}
json, _ := json.Marshal(result)
fmt.Println(string(json))
}
func TestGetAlbumTracks(t *testing.T) {
result, err := GetAlbumTracks(6575789, 0, 0)
if err != nil {
t.Fatal(err)
}
json, _ := json.Marshal(result)
fmt.Println(string(json))
}
func TestGetAlbumComments(t *testing.T) {
result, err := GetAlbumComments(6575789, 0, 0)
if err != nil {
t.Fatal(err)
}
json, _ := json.Marshal(result)
fmt.Println(string(json))
}
func TestGetAlbumFans(t *testing.T) {
result, err := GetAlbumFans(6575789, 0, 0)
if err != nil {
t.Fatal(err)
}
json, _ := json.Marshal(result)
fmt.Println(string(json))
}