This commit is contained in:
parent
44c2a69e9d
commit
ecfb129096
14
main_test.go
14
main_test.go
@ -14,3 +14,17 @@ func TestGreetingText(t *testing.T) {
|
|||||||
t.Errorf("Incorrect initial greeting, want: %q, got: %q", want, got.Text)
|
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()
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user