Helper to convert map of float64 to map of *big.Int with precision applied
(floatMap map[string]float64, precision int64)
| 55 | |
| 56 | // Helper to convert map of float64 to map of *big.Int with precision applied |
| 57 | func floatMapToBigIntMap(floatMap map[string]float64, precision int64) map[string]*big.Int { |
| 58 | bigIntMap := make(map[string]*big.Int) |
| 59 | for k, v := range floatMap { |
| 60 | bigIntMap[k] = floatToBigInt(v, precision) |
| 61 | } |
| 62 | return bigIntMap |
| 63 | } |
| 64 | |
| 65 | func TestCalculateDistributionsPrecise(t *testing.T) { |
| 66 | tests := []struct { |
no test coverage detected