11 lines
199 B
Go
11 lines
199 B
Go
package feed
|
|
|
|
import "testing"
|
|
|
|
func TestAdd(t *testing.T) {
|
|
gotErr := Add("gibberish")
|
|
|
|
if gotErr == nil {
|
|
t.Errorf("Expected Add function to throw an error if an invalid URL is provided")
|
|
}
|
|
}
|