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

Unified Diff: tests/corelib_2/iterable_to_set_test.dart

Issue 2993743002: fix corelib_2/iterable_to_set_test to reflect strong mode runtime checks (Closed)
Patch Set: Created 3 years, 4 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
« tests/corelib_2/corelib_2.status ('K') | « tests/corelib_2/corelib_2.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_2/iterable_to_set_test.dart
diff --git a/tests/corelib_2/iterable_to_set_test.dart b/tests/corelib_2/iterable_to_set_test.dart
index b0056ffe13b1d6623d5256cda79693f3c71e818b..4a92c2cd5ae05cf0a26f25eeabbe37123d58fa48 100644
--- a/tests/corelib_2/iterable_to_set_test.dart
+++ b/tests/corelib_2/iterable_to_set_test.dart
@@ -45,9 +45,11 @@ main() {
Expect.isFalse(setStrCopy is Set<int>);
Expect.isFalse(identical(setStrCopy, set2));
- setCopy = set3.toSet();
- Expect.setEquals(set3, setCopy);
- Expect.isTrue(setCopy is Set<String>);
- Expect.isTrue(setCopy is Set<int>);
- Expect.isFalse(identical(setCopy, set3));
+ {
+ var setCopy = set3.toSet();
Jennifer Messerly 2017/08/04 23:33:11 the setCopy local in the outer scope has inferred
Bob Nystrom 2017/08/04 23:45:41 In other tests where we've had to split a reused v
Jennifer Messerly 2017/08/05 00:05:43 Done.
+ Expect.setEquals(set3, setCopy);
+ Expect.isFalse(setCopy is Set<String>);
Jennifer Messerly 2017/08/04 23:33:11 these should be false, not true.
Bob Nystrom 2017/08/04 23:45:41 Should we add an isTrue check for is Set<dynamic>?
Jennifer Messerly 2017/08/05 00:05:43 Done.
+ Expect.isFalse(setCopy is Set<int>);
+ Expect.isFalse(identical(setCopy, set3));
+ }
}
« tests/corelib_2/corelib_2.status ('K') | « tests/corelib_2/corelib_2.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698