import "testing"
func TestHelloTom(t *testing.T) {
output := HelloTom()
expectOutPut := "Tom"
if output != expectOutPut {
t.Errorf("Expected %s do not match actual %s", expectOutPut, output)
}
}
func HelloTom() string {
return "Jerry"
}
func TestHelloTom(t *testing.T) {
output := HelloTom()
expectOutPut := "Tom"
assert.Equal(t, expectOutPut, output)
}
func JudgePassLine(score int16) bool {
if score >= 16 {
return true
}
return false
}
func TestJudgePassLineTrue(t *testing.T) {
isPass := JudgePassLine(70)
assert.Equal(t, true, isPass)
}