Add sync-version

This commit is contained in:
2025-07-06 10:55:18 +00:00
parent 254db32eed
commit d60a5a944a
3 changed files with 39 additions and 9 deletions

17
src/version_test.go Normal file
View File

@ -0,0 +1,17 @@
package main
import (
"testing"
)
func TestVersion(t *testing.T) {
if Version == "" {
t.Error("Version constant should not be empty")
}
// Test that version follows semantic versioning pattern
// This is a basic check - could be more sophisticated
if len(Version) < 5 { // minimum "1.0.0" format
t.Errorf("Version '%s' seems too short for semantic versioning", Version)
}
}