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

Unified Diff: tests/language_strong/adjacent_const_string_literals_test.dart

Issue 2984443003: Migrate the language tests up to arithmetic_test. (Closed)
Patch Set: generic_methods_generic_function_result_test isn't working on DDC yet. Created 3 years, 5 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/ackermann_test.dart ('k') | tests/language_strong/adjacent_string_literals_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/adjacent_const_string_literals_test.dart
diff --git a/tests/language_strong/adjacent_const_string_literals_test.dart b/tests/language_strong/adjacent_const_string_literals_test.dart
deleted file mode 100644
index 0af09ba311b556ba2f7896c668f402e7d799fd50..0000000000000000000000000000000000000000
--- a/tests/language_strong/adjacent_const_string_literals_test.dart
+++ /dev/null
@@ -1,117 +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.
-
-import "package:expect/expect.dart";
-
-class Conster {
- const Conster(this.value);
-
- final value;
-
- toString() {
- return value.toString();
- }
-}
-
-main() {
- testEmpty();
- testInterpolation();
- testMultiline();
-}
-
-testEmpty() {
- Expect.equals("", (const Conster("" "" "")).toString());
- Expect.equals("", (const Conster("" '' "")).toString());
- Expect.equals("", (const Conster("" "" r"")).toString());
-
- Expect.equals("a", (const Conster("a" "")).toString());
- Expect.equals("a", (const Conster("a" '')).toString());
- Expect.equals("a", (const Conster("a" r'')).toString());
-
- Expect.equals("b", (const Conster('b' "")).toString());
- Expect.equals("b", (const Conster('b' '')).toString());
- Expect.equals("b", (const Conster('b' r'')).toString());
-
- Expect.equals("c", (const Conster(r'c' "")).toString());
- Expect.equals("c", (const Conster(r'c' '')).toString());
- Expect.equals("c", (const Conster(r'c' r'')).toString());
-
- Expect.equals("a", (const Conster("" "a")).toString());
- Expect.equals("a", (const Conster("" 'a')).toString());
- Expect.equals("a", (const Conster("" r'a')).toString());
-
- Expect.equals("b", (const Conster('' "b")).toString());
- Expect.equals("b", (const Conster('' 'b')).toString());
- Expect.equals("b", (const Conster('' r'b')).toString());
-
- Expect.equals("c", (const Conster(r'' "c")).toString());
- Expect.equals("c", (const Conster(r'' 'c')).toString());
- Expect.equals("c", (const Conster(r'' r'c')).toString());
-}
-
-const s = "a";
-
-testInterpolation() {
- Expect.equals(r"ab", (const Conster("$s" "b")).toString());
- Expect.equals(r"ab", (const Conster('$s' "b")).toString());
- Expect.equals(r"$sb", (const Conster(r'$s' "b")).toString());
-
- Expect.equals(r"-a-b", (const Conster("-$s-" "b")).toString());
- Expect.equals(r"-a-b", (const Conster('-$s-' "b")).toString());
- Expect.equals(r"-$s-b", (const Conster(r'-$s-' "b")).toString());
-
- Expect.equals(r"ba", (const Conster('b' "$s")).toString());
- Expect.equals(r"ba", (const Conster('b' '$s')).toString());
- Expect.equals(r"b$s", (const Conster('b' r'$s')).toString());
-
- Expect.equals(r"b-a-", (const Conster('b' "-$s-")).toString());
- Expect.equals(r"b-a-", (const Conster('b' '-$s-')).toString());
- Expect.equals(r"b-$s-", (const Conster('b' r'-$s-')).toString());
-}
-
-testMultiline() {
- Expect.equals(
- "abe",
- (const Conster("a"
- "b"
- "e"))
- .toString());
- Expect.equals(
- "a b e",
- (const Conster("a "
- "b "
- "e"))
- .toString());
- Expect.equals(
- "a b e",
- (const Conster("a"
- " b"
- " e"))
- .toString());
-
- Expect.equals(
- "abe",
- (const Conster("""
-a"""
- "b"
- "e"))
- .toString());
- Expect.equals(
- "a b e",
- (const Conster("""
-a"""
- " b"
- " e"))
- .toString());
-
- Expect.equals(
- "abe",
- (const Conster("""
-a"""
- """
-b"""
- """
-e"""))
- .toString());
-}
« no previous file with comments | « tests/language_strong/ackermann_test.dart ('k') | tests/language_strong/adjacent_string_literals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698