Index: utils/tests/string_encoding/benchmark_runner.dart |
diff --git a/utils/tests/string_encoding/benchmark_runner.dart b/utils/tests/string_encoding/benchmark_runner.dart |
index 225a1dc0445c7d3439afb5681e9ad3c1c04f3ce1..7af2ead095d1324a741b3bc8636dc968a09f2460 100644 |
--- a/utils/tests/string_encoding/benchmark_runner.dart |
+++ b/utils/tests/string_encoding/benchmark_runner.dart |
@@ -104,8 +104,7 @@ class TestReport { |
} |
int resultsMeanNanos() => |
- (BlockSample._totalTime(results) / |
- BlockSample._totalCount(results)).toInt(); |
+ BlockSample._totalTime(results) ~/ BlockSample._totalCount(results); |
int resultsWorstNanos() { |
BlockSample worst = worstBlock(results); |
@@ -199,7 +198,7 @@ class Runner { |
static bool runTest(String testId) { |
Options opts = new Options(); |
return opts.arguments.length == 0 || |
- opts.arguments.some(_(String id) => id == testId); |
+ opts.arguments.any((String id) => id == testId); |
} |
} |