I am now trying to use dart:test features.
I can write something like:
expect(areaUnderCurveWithRectangleRule(f1, 0,1,1000), equals(2));
But as we know, in float/double calculation, there is no such thing as precise equal. So I am wondering if there is a roughly equal testing method? It will return true for two double values, if their difference is within a certain epsilon (say, 1E-6) or certain percentage?
If not, will this make a good feature request to Dart team?