OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // Note: This test relies on LF line endings in the source file. |
| 6 |
5 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
6 | 8 |
7 main() { | 9 main() { |
8 { | 10 { |
9 // Generates identical compile time constants. | 11 // Generates identical compile time constants. |
10 var s1 = "abcdefgh"; | 12 var s1 = "abcdefgh"; |
11 var s2 = "abcd" "efgh"; | 13 var s2 = "abcd" "efgh"; |
12 var s3 = "ab" "cd" "ef" "gh"; | 14 var s3 = "ab" "cd" "ef" "gh"; |
13 var s4 = "a" "b" "c" "d" "e" "f" "g" "h"; | 15 var s4 = "a" "b" "c" "d" "e" "f" "g" "h"; |
14 var s5 = "a" 'b' r"c" r'd' """e""" '''f''' r"""g""" r'''h'''; | 16 var s5 = "a" 'b' r"c" r'd' """e""" '''f''' r"""g""" r'''h'''; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 Expect.equals(r"-foo-42-true-", | 106 Expect.equals(r"-foo-42-true-", |
105 r"-" "$x" r"""-""" """$y""" r'-' '$z' r'''-''', "j"); | 107 r"-" "$x" r"""-""" """$y""" r'-' '$z' r'''-''', "j"); |
106 Expect.equals(r"-$x-42-true-", | 108 Expect.equals(r"-$x-42-true-", |
107 r"-" r"$x" r"""-""" """$y""" r'-' '$z' r'''-''', "k"); | 109 r"-" r"$x" r"""-""" """$y""" r'-' '$z' r'''-''', "k"); |
108 Expect.equals(r"-foo-$y-true-", | 110 Expect.equals(r"-foo-$y-true-", |
109 r"-" "$x" r"""-""" r"""$y""" r'-' '$z' r'''-''', "l"); | 111 r"-" "$x" r"""-""" r"""$y""" r'-' '$z' r'''-''', "l"); |
110 Expect.equals(r"-foo-42-$z-", | 112 Expect.equals(r"-foo-42-$z-", |
111 r"-" "$x" r"""-""" """$y""" r'-' r'$z' r'''-''', "m"); | 113 r"-" "$x" r"""-""" """$y""" r'-' r'$z' r'''-''', "m"); |
112 } | 114 } |
113 } | 115 } |
OLD | NEW |