OLD | NEW |
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 class RawStringTest { | 5 class RawStringTest { |
6 static testMain() { | 6 static testMain() { |
7 Expect.equals("abcd", @"abcd"); | 7 Expect.equals("abcd", @"abcd"); |
8 Expect.equals("", @""); | 8 Expect.equals("", @""); |
9 Expect.equals("", @''); | 9 Expect.equals("", @''); |
10 Expect.equals("", @""""""); | 10 Expect.equals("", @""""""); |
(...skipping 20 matching lines...) Expand all Loading... |
31 Expect.equals("\${12}", @"${12}"); | 31 Expect.equals("\${12}", @"${12}"); |
32 Expect.equals("\\a\\b\\c\\d\\e\\f\\g\\h\\i\\j\\k\\l\\m", | 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"); | 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", | 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"); | 35 @"\n\o\p\q\r\s\t\u\v\w\x\y\z"); |
36 } | 36 } |
37 } | 37 } |
38 main() { | 38 main() { |
39 RawStringTest.testMain(); | 39 RawStringTest.testMain(); |
40 } | 40 } |
OLD | NEW |