mirror of
https://github.com/hybridgroup/gocv
synced 2025-08-25 08:41:04 +08:00
21 lines
273 B
Go
21 lines
273 B
Go
package gocv
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestVersions(t *testing.T) {
|
|
ocvv := OpenCVVersion()
|
|
|
|
if !strings.Contains(ocvv, "4.0") {
|
|
t.Error("Wrong version of OpenCV:", ocvv)
|
|
}
|
|
|
|
v := Version()
|
|
|
|
if v != GoCVVersion {
|
|
t.Error("Wrong version of GoCV")
|
|
}
|
|
}
|