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

Side by Side Diff: tests/compiler/dart2js_extra/literal_string_juxtaposition_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated latest tests. Created 7 years, 9 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
OLDNEW
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 import "package:expect/expect.dart";
6
5 main() { 7 main() {
6 { 8 {
7 // Generates identical compile time constants. 9 // Generates identical compile time constants.
8 var s1 = "abcdefgh"; 10 var s1 = "abcdefgh";
9 var s2 = "abcd" "efgh"; 11 var s2 = "abcd" "efgh";
10 var s3 = "ab" "cd" "ef" "gh"; 12 var s3 = "ab" "cd" "ef" "gh";
11 var s4 = "a" "b" "c" "d" "e" "f" "g" "h"; 13 var s4 = "a" "b" "c" "d" "e" "f" "g" "h";
12 var s5 = "a" 'b' r"c" r'd' """e""" '''f''' r"""g""" r'''h'''; 14 var s5 = "a" 'b' r"c" r'd' """e""" '''f''' r"""g""" r'''h''';
13 Expect.isTrue(identical(s1, s2)); 15 Expect.isTrue(identical(s1, s2));
14 Expect.isTrue(identical(s1, s3)); 16 Expect.isTrue(identical(s1, s3));
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 Expect.equals(r"-foo-42-true-", 104 Expect.equals(r"-foo-42-true-",
103 r"-" "$x" r"""-""" """$y""" r'-' '$z' r'''-''', "j"); 105 r"-" "$x" r"""-""" """$y""" r'-' '$z' r'''-''', "j");
104 Expect.equals(r"-$x-42-true-", 106 Expect.equals(r"-$x-42-true-",
105 r"-" r"$x" r"""-""" """$y""" r'-' '$z' r'''-''', "k"); 107 r"-" r"$x" r"""-""" """$y""" r'-' '$z' r'''-''', "k");
106 Expect.equals(r"-foo-$y-true-", 108 Expect.equals(r"-foo-$y-true-",
107 r"-" "$x" r"""-""" r"""$y""" r'-' '$z' r'''-''', "l"); 109 r"-" "$x" r"""-""" r"""$y""" r'-' '$z' r'''-''', "l");
108 Expect.equals(r"-foo-42-$z-", 110 Expect.equals(r"-foo-42-$z-",
109 r"-" "$x" r"""-""" """$y""" r'-' r'$z' r'''-''', "m"); 111 r"-" "$x" r"""-""" """$y""" r'-' r'$z' r'''-''', "m");
110 } 112 }
111 } 113 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698