You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package decimal
|
|
|
|
import "testing"
|
|
|
|
func TestPercent2PointMap(t *testing.T) {
|
|
|
|
var children = []*Operator{
|
|
{
|
|
Id: 1,
|
|
Num: 1,
|
|
}, {
|
|
Id: 2,
|
|
Num: 2,
|
|
}, {
|
|
Id: 3,
|
|
Num: 3,
|
|
}, {
|
|
Id: 5,
|
|
Num: 5,
|
|
},
|
|
}
|
|
var denominator int64 = 11
|
|
|
|
t.Logf("%+v", Percent2PointMap(children, denominator))
|
|
}
|