7574b334cc
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
15 lines
242 B
Go
15 lines
242 B
Go
package version
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestFullVersion(t *testing.T) {
|
|
version := FullVersion()
|
|
|
|
expected := Version + Build + " (" + GitCommit + ")"
|
|
|
|
if version != expected {
|
|
t.Fatalf("invalid version returned: %s", version)
|
|
}
|
|
}
|