我安裝了go并嘗試了有關(guān)如何編寫go代碼的第一部分過了一會兒沒看到理想的結(jié)果,我注意到去測試總是通過,總是!我想念什么?$ go versiongo version go1$ mkdir -p src/example/math $ cat >src/example/math/sum_test.go <<.> package math>> import "testing">> func SumTest( t *testing.T ) {> t.Errorf("ssss %d", 1 )> }> .$ go test example/mathok example/math 0.044s我正在使用Windows x64和git-bash作為外殼
- 1 回答
- 0 關(guān)注
- 255 瀏覽
添加回答
舉報
0/150
提交
取消