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

Unified Diff: tests/compiler/dart2js/type_checker_test.dart

Issue 26297003: Fix tests that didn't fail before double got an equality operator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « tests/co19/co19-analyzer.status ('k') | tests/language/language_analyzer.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_checker_test.dart
diff --git a/tests/compiler/dart2js/type_checker_test.dart b/tests/compiler/dart2js/type_checker_test.dart
index ca31c6a077c294ac05fd5baa8cdbb1e16b642262..827704475c296a26b0a8bfbbdf2ee480936e4303 100644
--- a/tests/compiler/dart2js/type_checker_test.dart
+++ b/tests/compiler/dart2js/type_checker_test.dart
@@ -149,15 +149,8 @@ testSwitch() {
NOT_ASSIGNABLE);
analyze("switch ('') { case 1: break; case 2: break; }",
[NOT_ASSIGNABLE, NOT_ASSIGNABLE]);
-
- analyze("switch (0.5) { case 0.5: break; case 1.5: break; }",
- [], []);
- analyze("switch (1.0) { case 1.0: break; case 1.5: break; }",
- [], []);
- analyze("switch (null) { case 1.0: break; case 2: break; }",
- [MessageKind.SWITCH_CASE_TYPES_NOT_EQUAL_CASE,
- MessageKind.SWITCH_CASE_TYPES_NOT_EQUAL_CASE],
- [MessageKind.SWITCH_CASE_TYPES_NOT_EQUAL]);
+ analyze("switch (1.5) { case 1: break; case 2: break; }",
+ [NOT_ASSIGNABLE, NOT_ASSIGNABLE]);
}
testOperators() {
« no previous file with comments | « tests/co19/co19-analyzer.status ('k') | tests/language/language_analyzer.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698