Files
gocv/version_test.go
deadprogram 86c28e35c3 chore: update to OpenCV 4.12.0
Signed-off-by: deadprogram <ron@hybridgroup.com>
2025-07-24 08:22:18 +02:00

21 lines
310 B
Go

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