mcchunkie/errata_test.go

17 lines
262 B
Go
Raw Normal View History

package main
import (
"testing"
)
func TestParseErrata(t *testing.T) {
2020-02-24 18:05:00 -07:00
got, err := ParseRemoteErrata("https://www.openbsd.org/errata66.html")
if err != nil {
t.Error(err)
}
2020-02-24 18:05:00 -07:00
l := len(got.List)
if l == 0 {
t.Errorf("errata count %d; want > 0", l)
}
}