作者 yangfu

rand task

... ... @@ -6,6 +6,7 @@ import (
"opp/protocol"
"reflect"
"testing"
"time"
)
func Test_GenMessage(t *testing.T) {
... ... @@ -39,3 +40,17 @@ func Benchmark_GenMessage(b *testing.B) {
}
}
}
func Test_RandTask(t *testing.T){
time :=time.Now().Unix()
num :=1
for i:=1;i<=num;i++{
r :=time%2
if r==0{
t.Log("xh","yf",time)
}
if r==1{
t.Log("yf","xh",time)
}
}
}
... ...