12 lines
233 B
Go
12 lines
233 B
Go
|
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)
|
||
|
}
|
||
|
}
|