diff options
| author | Nathan Perry <avaglir@gmail.com> | 2017-07-28 00:51:34 -0400 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2017-07-28 00:51:34 -0400 |
| commit | 47877a3045c745e70b2e77a91e1f59e6f432c5df (patch) | |
| tree | dfcb8b1ea145c33c04aee45dd0c46824bf5fec36 /downloader/downloader_test.go | |
| parent | 54359c61daadf1d61730d224675c3b4595a5b83a (diff) | |
try own wav impl
Diffstat (limited to 'downloader/downloader_test.go')
| -rw-r--r-- | downloader/downloader_test.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/downloader/downloader_test.go b/downloader/downloader_test.go new file mode 100644 index 0000000..37a23d4 --- /dev/null +++ b/downloader/downloader_test.go @@ -0,0 +1,22 @@ +package downloader + +import ( + "fmt" + "testing" + "time" +) + +func TestGetUrl(t *testing.T) { + u, err := getUrl("https://www.youtube.com/watch?v=_K13GJkGvDw") + if err != nil { + t.Fatal(err) + } + + fmt.Println(u) +} + +func TestDownload(t *testing.T) { + if err := Download("https://www.youtube.com/watch?v=_K13GJkGvDw", 10*time.Second, 10*time.Second); err != nil { + t.Fatal(err) + } +} |
