Index: pkg/unittest/lib/src/numeric_matchers.dart |
diff --git a/pkg/unittest/lib/src/numeric_matchers.dart b/pkg/unittest/lib/src/numeric_matchers.dart |
index d040efb24a5a43116e4e931e73dc619361c68e39..f733fa6bbf83f1384cb335b2d61b7ebf002b0a43 100644 |
--- a/pkg/unittest/lib/src/numeric_matchers.dart |
+++ b/pkg/unittest/lib/src/numeric_matchers.dart |
@@ -73,8 +73,8 @@ const Matcher isNonNegative = |
const _OrderingComparison(0, true, false, true, |
'a non-negative value', false); |
-bool _isNumeric(value) { |
- return value is int || value is double; |
+bool _isNumeric(Object value) { |
+ return value is num; |
} |
class _OrderingComparison extends Matcher { |