Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1323)

Unified Diff: tests/lib_strong/convert/unicode_tests.dart

Issue 2989993002: fix unsound cast failures in tests (Closed)
Patch Set: fix Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/lib_strong/convert/unicode_tests.dart
diff --git a/tests/lib_strong/convert/unicode_tests.dart b/tests/lib_strong/convert/unicode_tests.dart
index c7dd6ddda6238f4f0c9c2c039f0cd47fd86fb69f..9f0493bce2967783e93f948d9782f448ba1e3306 100644
--- a/tests/lib_strong/convert/unicode_tests.dart
+++ b/tests/lib_strong/convert/unicode_tests.dart
@@ -205,7 +205,7 @@ const BIGGEST_4_UTF8_UNIT_BYTES = const [0xF4, 0x8F, 0xBF, 0xBF];
const BIGGEST_4_UTF8_UNIT_STRING = "\u{10FFFF}";
const _TEST_PAIRS = const [
- const [const [], ""],
+ const [const <int>[], ""],
const [INTER_BYTES, INTER_STRING],
const [BLUEBERRY_BYTES, BLUEBERRY_STRING],
const [SIVA_BYTES1, SIVA_STRING1],
@@ -224,12 +224,12 @@ const _TEST_PAIRS = const [
List<List> _expandTestPairs() {
assert(2 == BEE_STRING.length);
- var tests = [];
+ var tests = <List>[];
tests.addAll(_TEST_PAIRS);
tests.addAll(_TEST_PAIRS.map((test) {
var bytes = test[0];
var string = test[1];
- var longBytes = [];
+ var longBytes = <int>[];
var longString = "";
for (int i = 0; i < 100; i++) {
longBytes.addAll(bytes);
« no previous file with comments | « tests/lib_strong/convert/streamed_conversion_json_decode1_test.dart ('k') | tests/lib_strong/convert/utf82_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698