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

Unified Diff: tests/language/src/CompileTimeConstantOTest.dart

Issue 10248007: test rename overhaul: step 8 - language tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « tests/language/src/CompileTimeConstantNTest.dart ('k') | tests/language/src/CompileTimeConstantPTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/CompileTimeConstantOTest.dart
diff --git a/tests/language/src/CompileTimeConstantOTest.dart b/tests/language/src/CompileTimeConstantOTest.dart
deleted file mode 100644
index 56a6da509668d13928054d8c2a4d008f4e2ee679..0000000000000000000000000000000000000000
--- a/tests/language/src/CompileTimeConstantOTest.dart
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-// Test compile-time constants with string-interpolation.
-
-final str = "foo";
-final m1 = const { "foo": 499 };
-final m2 = const { "$str": 499 };
-final m3 = const { "$str": 42, "foo": 499 };
-final m4 = const { "foo": 42, "$str": 499 };
-final m5 = const { "f" "o" "o": 499 };
-
-final mm1 = const { "afoo#foo": 499 };
-final mm2 = const { "a$str#$str": 499 };
-final mm3 = const { "a" "$str" "#" "foo": 499 };
-final mm4 = const { "a$str" "#$str": 499 };
-
-main() {
- Expect.equals(1, m1.length);
- Expect.equals(499, m1["foo"]);
- Expect.identical(m1, m2);
- Expect.identical(m1, m3);
- Expect.identical(m1, m4);
- Expect.identical(m1, m5);
-
- Expect.equals(1, mm1.length);
- Expect.equals(499, mm1["afoo#foo"]);
- Expect.identical(mm1, mm2);
- Expect.identical(mm1, mm3);
- Expect.identical(mm1, mm4);
-}
« no previous file with comments | « tests/language/src/CompileTimeConstantNTest.dart ('k') | tests/language/src/CompileTimeConstantPTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698