// main_test.go package main import "testing" func TestGreet(t *testing.T) { result := Greet("Go") expected := "Hello, Go!" if result != expected { t.Errorf("Greet was incorrect, got: %s, want: %s.", result, expected) } }