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

Side by Side Diff: tests/language/src/RawStringTest.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, 7 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/src/PseudoKWTest.dart ('k') | tests/language/src/RegEx2Test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 class RawStringTest {
6 static testMain() {
7 Expect.equals("abcd", @"abcd");
8 Expect.equals("", @"");
9 Expect.equals("", @'');
10 Expect.equals("", @"""""");
11 Expect.equals("", @'''''');
12 Expect.equals("''''", @"''''");
13 Expect.equals('""""', @'""""');
14 Expect.equals("1\n2\n3", @"""1
15 2
16 3""");
17 Expect.equals("1\n2\n3", @'''1
18 2
19 3''');
20 Expect.equals("1", @"""
21 1""");
22 Expect.equals("1", @'''
23 1''');
24 Expect.equals("'", @"'");
25 Expect.equals('"', @'"');
26 Expect.equals("1", @"1");
27 Expect.equals("1", @"1");
28 Expect.equals("\$", @"$");
29 Expect.equals("\\", @"\");
30 Expect.equals("\\", @'\');
31 Expect.equals("\${12}", @"${12}");
32 Expect.equals("\\a\\b\\c\\d\\e\\f\\g\\h\\i\\j\\k\\l\\m",
33 @"\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",
35 @"\n\o\p\q\r\s\t\u\v\w\x\y\z");
36 }
37 }
38 main() {
39 RawStringTest.testMain();
40 }
OLDNEW
« no previous file with comments | « tests/language/src/PseudoKWTest.dart ('k') | tests/language/src/RegEx2Test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698