diff --git a/core_test.go b/core_test.go index 8a8155f4..b5c8b002 100644 --- a/core_test.go +++ b/core_test.go @@ -1140,9 +1140,9 @@ func TestSolvePoly(t *testing.T) { diffError := SolvePoly(coeffs, &roots, 300) - expectedDiffError := 0.0 - if diffError != expectedDiffError { - t.Errorf("TestSolvePoly was not exact, got an error of %f and should have been %f", diffError, expectedDiffError) + diffTolerance := 1.0e-61 + if diffError > diffTolerance { + t.Errorf("TestSolvePoly was not exact, got an error of %e and should have been less than %f", diffError, diffTolerance) } if roots.GetFloatAt(0, 0) != 7.0 {