13 lines
199 B
Go
13 lines
199 B
Go
|
package tracker
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestUnsupportedTrackerScheme(t *testing.T) {
|
||
|
_, err := New("lol://tracker.openbittorrent.com:80/announce")
|
||
|
if err != ErrBadScheme {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
}
|