go get github.com/weiwenchen2022/assert
package main
import (
"testing"
"github.com/weiwenchen2022/assert"
)
func greet(name string) (string, int) {
greeting := fmt.Sprintf("Hello %s", name)
// Return the greeting and its length (in bytes).
return greeting, len(greeting)
}
func TestGreet(t *testing.T) {
greeting, greetingLength := greet("Alice")
assert.Equal(t, "Hello Alice", greeting, "greeting:")
assert.Equal(t, 11, greetingLength, "greetingLength:")
}