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

Unified Diff: tests/language_2/if_null_evaluation_order_test.dart

Issue 3003933002: Migrate block 116. (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
Index: tests/language_2/if_null_evaluation_order_test.dart
diff --git a/tests/language_strong/if_null_evaluation_order_test.dart b/tests/language_2/if_null_evaluation_order_test.dart
similarity index 74%
rename from tests/language_strong/if_null_evaluation_order_test.dart
rename to tests/language_2/if_null_evaluation_order_test.dart
index f5db1c259c44d13cc9fb283f3ea86588805ee94c..fa931709b5095a0f06e112913a7dae8c896a7cb1 100644
--- a/tests/language_strong/if_null_evaluation_order_test.dart
+++ b/tests/language_2/if_null_evaluation_order_test.dart
@@ -27,10 +27,6 @@ second() {
}
main() {
- // Make sure the "none" test fails if "??" is not implemented. This makes
- // status files easier to maintain.
- var _ = null ?? null;
-
- Expect.equals(1, 1 ?? bad()); //# 01: ok
- Expect.equals(2, first() ?? second()); //# 02: ok
+ Expect.equals(1, 1 ?? bad());
+ Expect.equals(2, first() ?? second());
}

Powered by Google App Engine
This is Rietveld 408576698