Index: utils/tests/pub/test_pub.dart |
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
index 9e8e9d373d0d40e05b10400f2673a2ff11e7311d..d272cb7f026b891f2dd58947330d164618d3723a 100644 |
--- a/utils/tests/pub/test_pub.dart |
+++ b/utils/tests/pub/test_pub.dart |
@@ -13,6 +13,7 @@ |
#import('dart:io'); |
#import('dart:isolate'); |
#import('dart:json'); |
+#import('dart:math'); |
#import('dart:uri'); |
#import('../../../pkg/unittest/unittest.dart'); |
@@ -364,7 +365,7 @@ void _validateOutputString(String expectedText, List<String> actual) { |
// to expect zero lines of output, not a single empty line. |
expected.removeLast(); |
- final length = Math.min(expected.length, actual.length); |
+ final length = min(expected.length, actual.length); |
for (var i = 0; i < length; i++) { |
if (expected[i].trim() != actual[i].trim()) { |
Expect.fail( |