Files
gocv/version_test.go
2019-05-21 11:22:49 +02:00

21 lines
273 B
Go

package gocv
import (
"strings"
"testing"
)
func TestVersions(t *testing.T) {
ocvv := OpenCVVersion()
if !strings.Contains(ocvv, "4.1") {
t.Error("Wrong version of OpenCV:", ocvv)
}
v := Version()
if v != GoCVVersion {
t.Error("Wrong version of GoCV")
}
}