forked from Leak_Technologies/VideoTools
Vendor gotk3 library to ensure consistent GTK3 bindings across environments and simplify dependency management. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
21 lines
469 B
Go
21 lines
469 B
Go
package gtk
|
|
|
|
import "testing"
|
|
|
|
func TestCheckVersion(t *testing.T) {
|
|
err := CheckVersion(GetMajorVersion(), GetMinorVersion(), GetMicroVersion())
|
|
if err != nil {
|
|
t.Error(err)
|
|
}
|
|
|
|
err = CheckVersion(GetMajorVersion(), GetMinorVersion(), GetMicroVersion()-1)
|
|
if err != nil {
|
|
t.Error(err)
|
|
}
|
|
|
|
err = CheckVersion(GetMajorVersion(), GetMinorVersion(), GetMicroVersion()+1)
|
|
if err == nil {
|
|
t.Error("Expected to fail when an more recent version is expected")
|
|
}
|
|
}
|