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

Unified Diff: tests/language/const_map_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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/const_map_test.dart
diff --git a/tests/language/const_map_test.dart b/tests/language/const_map_test.dart
index 9cc0d5b40f9874d1fbd304e251edbe05456e366c..8e9314088bf74339f36a75798165252faad7dd58 100644
--- a/tests/language/const_map_test.dart
+++ b/tests/language/const_map_test.dart
@@ -7,14 +7,15 @@ import "package:expect/expect.dart";
/// Returns its argument.
///
/// Prevents static optimizations and inlining.
-@NoInline() @AssumeDynamic()
+@NoInline()
+@AssumeDynamic()
confuse(x) => x;
main() {
// Make sure that const maps use the == operator and not identical. The
// specification does not explicitly require it, but otherwise ints and
// Strings wouldn't make much sense as keys.
- var m = const { 1: 42, "foo": 499 };
+ var m = const {1: 42, "foo": 499};
Expect.equals(42, m[confuse(1.0)]);
Expect.equals(499, m[confuse(new String.fromCharCodes("foo".runes))]);
}

Powered by Google App Engine
This is Rietveld 408576698