| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2014, 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 /// Test of newlines in interpolated strings. |
| 6 |
| 7 main() { |
| 8 String expected = '[[{{}: {}}]]'; |
| 9 String a = "${ [ "${ [ '${ { '${ { } }' : { } } }' ] }" ] }"; |
| 10 String b = "${ [ "${ [ '${ { '${ |
| 11 { } }' : { } } }' ] }" ] }"; |
| 12 String c = "${ [ "${ [ '${ { '${ |
| 13 { |
| 14 } }' : { |
| 15 } } }' ] }" ] }"; |
| 16 if (expected != a) throw 'expecteda: $expected != $a'; |
| 17 if (a != b) throw 'ab: $a != $b'; |
| 18 if (b != c) throw 'bc: $b != $c'; |
| 19 print('$a$b$c'); |
| 20 } |
| OLD | NEW |