go-xkcdreader/xkcdreader/app_test.go
surtur f099f43f05
All checks were successful
continuous-integration/drone/push Build is passing
go: move app logic to xkcdreader package
2022-05-19 17:24:00 +02:00

17 lines
295 B
Go

package xkcdreader
import (
"testing"
"git.dotya.ml/wanderer/go-xkcdreader/cmd"
)
func TestGreetingText(t *testing.T) {
want := "welcome to " + cmd.GetAppName()
got := makeGreeting()
if got.Text != want {
t.Errorf("Incorrect initial greeting, want: %q, got: %q", want, got.Text)
}
}