Helper function for float64 comparisons
(a, b float64)
| 27 | |
| 28 | // Helper function for float64 comparisons |
| 29 | func floatEquals(a, b float64) bool { |
| 30 | const epsilon = 1e-9 |
| 31 | return math.Abs(a-b) < epsilon |
| 32 | } |
| 33 | |
| 34 | // Helper function for big.Int map comparisons |
| 35 | func bigIntMapsEqual(got, want map[string]*big.Int) bool { |
no outgoing calls
no test coverage detected