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

Side by Side Diff: tests/language/raw_string_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/language/range_analysis_test.dart ('k') | tests/language/recursive_loop_phis_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart";
6
5 class RawStringTest { 7 class RawStringTest {
6 static testMain() { 8 static testMain() {
7 Expect.equals("abcd", r"abcd"); 9 Expect.equals("abcd", r"abcd");
8 Expect.equals("", r""); 10 Expect.equals("", r"");
9 Expect.equals("", r''); 11 Expect.equals("", r'');
10 Expect.equals("", r""""""); 12 Expect.equals("", r"""""");
11 Expect.equals("", r''''''); 13 Expect.equals("", r'''''');
12 Expect.equals("''''", r"''''"); 14 Expect.equals("''''", r"''''");
13 Expect.equals('""""', r'""""'); 15 Expect.equals('""""', r'""""');
14 Expect.equals("1\n2\n3", r"""1 16 Expect.equals("1\n2\n3", r"""1
(...skipping 16 matching lines...) Expand all
31 Expect.equals("\${12}", r"${12}"); 33 Expect.equals("\${12}", r"${12}");
32 Expect.equals("\\a\\b\\c\\d\\e\\f\\g\\h\\i\\j\\k\\l\\m", 34 Expect.equals("\\a\\b\\c\\d\\e\\f\\g\\h\\i\\j\\k\\l\\m",
33 r"\a\b\c\d\e\f\g\h\i\j\k\l\m"); 35 r"\a\b\c\d\e\f\g\h\i\j\k\l\m");
34 Expect.equals("\\n\\o\\p\\q\\r\\s\\t\\u\\v\\w\\x\\y\\z", 36 Expect.equals("\\n\\o\\p\\q\\r\\s\\t\\u\\v\\w\\x\\y\\z",
35 r"\n\o\p\q\r\s\t\u\v\w\x\y\z"); 37 r"\n\o\p\q\r\s\t\u\v\w\x\y\z");
36 } 38 }
37 } 39 }
38 main() { 40 main() {
39 RawStringTest.testMain(); 41 RawStringTest.testMain();
40 } 42 }
OLDNEW
« no previous file with comments | « tests/language/range_analysis_test.dart ('k') | tests/language/recursive_loop_phis_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698