package simplemath import ( "testing" ) func TestAdd(t *testing.T) { v:=Add(3,5) if v!=8{ t.Errorf("计算错误") }else { println("正确啦") } } func TestSqrt(t *testing.T) { v := Sqrt(16.0) if v != 4 { t.Errorf("error") } }