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

Unified Diff: test/hex_test.dart

Issue 1912273003: Make the package strong-mode clean. (Closed) Base URL: git@github.com:dart-lang/convert.git@master
Patch Set: Code review changes Created 4 years, 8 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
« no previous file with comments | « test/byte_accumulator_sink_test.dart ('k') | test/percent_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/hex_test.dart
diff --git a/test/hex_test.dart b/test/hex_test.dart
index f52edaf28d741abf7fd484721dd5816179ff3e1d..837085f6bc4a04f1361656c1eca4801219fd81f6 100644
--- a/test/hex_test.dart
+++ b/test/hex_test.dart
@@ -16,8 +16,8 @@ void main() {
group("with chunked conversion", () {
test("converts byte arrays to hex", () {
- var results = [];
- var controller = new StreamController(sync: true);
+ var results = <String>[];
+ var controller = new StreamController<String>(sync: true);
controller.stream.listen(results.add);
var sink = hex.encoder.startChunkedConversion(controller.sink);
@@ -29,8 +29,8 @@ void main() {
});
test("handles empty and single-byte lists", () {
- var results = [];
- var controller = new StreamController(sync: true);
+ var results = <String>[];
+ var controller = new StreamController<String>(sync: true);
controller.stream.listen(results.add);
var sink = hex.encoder.startChunkedConversion(controller.sink);
@@ -67,11 +67,11 @@ void main() {
});
group("with chunked conversion", () {
- var results;
+ List<List<int>> results;
var sink;
setUp(() {
results = [];
- var controller = new StreamController(sync: true);
+ var controller = new StreamController<List<int>>(sync: true);
controller.stream.listen(results.add);
sink = hex.decoder.startChunkedConversion(controller.sink);
});
« no previous file with comments | « test/byte_accumulator_sink_test.dart ('k') | test/percent_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698