17 lines
251 B
Go
17 lines
251 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestParseErrata(t *testing.T) {
|
||
|
got, err := ParseErrata("https://www.openbsd.org/errata66.html")
|
||
|
if err != nil {
|
||
|
t.Error(err)
|
||
|
}
|
||
|
l := len(got)
|
||
|
if l == 0 {
|
||
|
t.Errorf("errata count %d; want > 0", l)
|
||
|
}
|
||
|
}
|