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 |