package version

import (
	"strings"
	"testing"
)

func TestFullVersion(t *testing.T) {
	v := FullVersion()
	if !strings.HasPrefix(v, Name) {
		t.Errorf("FullVersion should start with %s, got %s", Name, v)
	}
	if !strings.Contains(v, "v"+Version) {
		t.Errorf("FullVersion should contain v%s, got %s", Version, v)
	}
}

func TestConstants(t *testing.T) {
	if Name == "" {
		t.Error("Name should not be empty")
	}
	if Version == "" {
		t.Error("Version should not be empty")
	}
	if Author == "" {
		t.Error("Author should not be empty")
	}
}
