17 lines
295 B
Go
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)
|
|
}
|
|
}
|