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

Unified Diff: tests/language/symbol_literal_test.dart

Issue 2770063002: Revert "Format all multitests" (Closed)
Patch Set: Created 3 years, 9 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/language/switch_case_warn_test.dart ('k') | tests/language/sync_generator1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/symbol_literal_test.dart
diff --git a/tests/language/symbol_literal_test.dart b/tests/language/symbol_literal_test.dart
index bca952dfdbf9c32e95df80dc0f2c401268ba874f..dcb413662f1b522db304664b0f783778887424ed 100644
--- a/tests/language/symbol_literal_test.dart
+++ b/tests/language/symbol_literal_test.dart
@@ -13,30 +13,32 @@ foo(a, b) => Expect.isTrue(identical(a, b));
var check = foo; // Indirection used to avoid inlining.
testSwitch(Symbol s) {
- switch (s) {
- case #abc:
- return 1;
- case const Symbol("def"):
- return 2;
- default:
- return 0;
+ switch(s) {
+ case #abc: return 1;
+ case const Symbol("def"): return 2;
+ default: return 0;
}
}
main() {
check(const Symbol("a"), #a);
- check(const Symbol("a"), #a);
- check(const Symbol("ab"), #ab);
+ check(const Symbol("a"), #
+ a);
check(const Symbol("ab"), #ab);
+ check(const Symbol("ab"), #
+ ab);
check(const Symbol("a.b"), #a.b);
- check(const Symbol("a.b"), #a.b);
- check(const Symbol("=="), #==);
+ check(const Symbol("a.b"), #
+ a
+ .
+ b);
check(const Symbol("=="), #==);
+ check(const Symbol("=="), # ==);
check(const Symbol("a.toString"), #a.toString);
Expect.equals(1, testSwitch(#abc));
- const m = const <Symbol, int>{#A: 0, #B: 1};
+ const m = const <Symbol, int>{#A:0, #B:1};
Expect.equals(1, m[#B]);
// Tries to call the symbol literal #a.toString
« no previous file with comments | « tests/language/switch_case_warn_test.dart ('k') | tests/language/sync_generator1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698