2022-01-26 13:12:15 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func TestHello(t *testing.T) {
|
2022-01-26 13:29:00 +00:00
|
|
|
got := Hello("Oliver")
|
2022-01-26 13:33:39 +00:00
|
|
|
want := "Hello, failure"
|
2022-01-26 13:12:15 +00:00
|
|
|
|
|
|
|
if got != want {
|
|
|
|
t.Errorf("got %q want %q", got, want)
|
|
|
|
}
|
|
|
|
}
|