You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flux-feed/main_test.go

19 lines
250 B
Go

package main
import (
"bytes"
"testing"
)
func TestCliGreeting(t *testing.T) {
buffer := &bytes.Buffer{}
HelloFluxFeed(buffer)
got := buffer.String()
want := FluxGreeting
if got != want {
t.Errorf("Got %s but wanted %s", got, want)
}
}