testExponentError skips t if err was caused by an exponent being outside of the package's supported exponent range. Since the exponent is so large, we don't support those tests yet (i.e., it's an expected failure, so we skip it).
(t *testing.T, err error)
| 37 | // we don't support those tests yet (i.e., it's an expected failure, so we |
| 38 | // skip it). |
| 39 | func testExponentError(t *testing.T, err error) { |
| 40 | if err == nil { |
| 41 | return |
| 42 | } |
| 43 | if err.Error() == errExponentOutOfRangeStr { |
| 44 | t.Skip(err) |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | func newDecimal(t *testing.T, c *Context, s string) *Decimal { |
| 49 | d, _, err := c.NewFromString(s) |
no outgoing calls
no test coverage detected
searching dependent graphs…