go-xkcdreader/main_test.go

12 lines
233 B
Go
Raw Normal View History

package main
import "testing"
func TestGreetingText(t *testing.T) {
want := "welcome to go-xkcdreader"
got := makeGreeting()
if got.Text != want {
t.Errorf("Incorrect initial greeting, want: %q, got: %q", want, got.Text)
}
}