diff --git a/main_test.go b/main_test.go index ab58f13..7f8aa89 100644 --- a/main_test.go +++ b/main_test.go @@ -14,3 +14,17 @@ func TestGreetingText(t *testing.T) { t.Errorf("Incorrect initial greeting, want: %q, got: %q", want, got.Text) } } + +func TestLocalgetVersion(t *testing.T) { + want := version + got := getVersion() + + if got != want { + t.Errorf("Incorrect version from getVersion, want: %q, got: %q", want, got) + } +} + +// does this test even make sense? +func TestExecMain(t *testing.T) { + go main() +}