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

Unified Diff: tests/language_strong/symbol_literal_test.dart

Issue 2774783002: Re-land "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_strong/switch_case_test.dart ('k') | tests/language_strong/sync_generator1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/symbol_literal_test.dart
diff --git a/tests/language_strong/symbol_literal_test.dart b/tests/language_strong/symbol_literal_test.dart
index dcb413662f1b522db304664b0f783778887424ed..bca952dfdbf9c32e95df80dc0f2c401268ba874f 100644
--- a/tests/language_strong/symbol_literal_test.dart
+++ b/tests/language_strong/symbol_literal_test.dart
@@ -13,32 +13,30 @@ 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("a"), #a);
+ check(const Symbol("ab"), #ab);
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("a.b"), #a.b);
+ check(const Symbol("=="), #==);
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_strong/switch_case_test.dart ('k') | tests/language_strong/sync_generator1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698