go-xkcdreader/xkcdreader/app_test.go
surtur 9d29017860
All checks were successful
continuous-integration/drone/push Build is passing
add copyright headers+enforce w/ addlicense
2022-05-21 00:49:13 +02:00

20 lines
392 B
Go

// Copyright 2022 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: GPL-3.0-or-later
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)
}
}