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

Unified Diff: tests/language_strong/adjacent_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
Index: tests/language_strong/adjacent_string_literals_test.dart
diff --git a/tests/language_strong/adjacent_string_literals_test.dart b/tests/language_strong/adjacent_string_literals_test.dart
deleted file mode 100644
index 48f8ba2bd1cf50f0ff02cde6b0142fe1096ca259..0000000000000000000000000000000000000000
--- a/tests/language_strong/adjacent_string_literals_test.dart
+++ /dev/null
@@ -1,100 +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";
-
-main() {
- testEmpty();
- testInterpolation();
- testMultiline();
-}
-
-testEmpty() {
- Expect.equals("", "" "" "");
- Expect.equals("", "" '' "");
- Expect.equals("", "" "" r"");
-
- Expect.equals("a", "a" "");
- Expect.equals("a", "a" '');
- Expect.equals("a", "a" r'');
-
- Expect.equals("b", 'b' "");
- Expect.equals("b", 'b' '');
- Expect.equals("b", 'b' r'');
-
- Expect.equals("c", r'c' "");
- Expect.equals("c", r'c' '');
- Expect.equals("c", r'c' r'');
-
- Expect.equals("a", "" "a");
- Expect.equals("a", "" 'a');
- Expect.equals("a", "" r'a');
-
- Expect.equals("b", '' "b");
- Expect.equals("b", '' 'b');
- Expect.equals("b", '' r'b');
-
- Expect.equals("c", r'' "c");
- Expect.equals("c", r'' 'c');
- Expect.equals("c", r'' r'c');
-}
-
-testInterpolation() {
- var s = "a";
- Expect.equals(r"ab", "$s" "b");
- Expect.equals(r"ab", '$s' "b");
- Expect.equals(r"$sb", r'$s' "b");
-
- Expect.equals(r"-a-b", "-$s-" "b");
- Expect.equals(r"-a-b", '-$s-' "b");
- Expect.equals(r"-$s-b", r'-$s-' "b");
-
- Expect.equals(r"ba", 'b' "$s");
- Expect.equals(r"ba", 'b' '$s');
- Expect.equals(r"b$s", 'b' r'$s');
-
- Expect.equals(r"b-a-", 'b' "-$s-");
- Expect.equals(r"b-a-", 'b' '-$s-');
- Expect.equals(r"b-$s-", 'b' r'-$s-');
-}
-
-testMultiline() {
- Expect.equals(
- "abe",
- "a"
- "b"
- "e");
- Expect.equals(
- "a b e",
- "a "
- "b "
- "e");
- Expect.equals(
- "a b e",
- "a"
- " b"
- " e");
-
- Expect.equals(
- "abe",
- """
-a"""
- "b"
- "e");
- Expect.equals(
- "a b e",
- """
-a"""
- " b"
- " e");
-
- Expect.equals(
- "abe",
- """
-a"""
- """
-b"""
- """
-e""");
-}
« no previous file with comments | « tests/language_strong/adjacent_const_string_literals_test.dart ('k') | tests/language_strong/allocate_large_object_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698