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

Side by Side Diff: tests/language/compile_time_constant_i_test.dart

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). 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
7 class A { 5 class A {
8 final x; 6 final x;
9 const A(this.x); 7 const A(this.x);
10 const A.redirect(x) : this(x + 1); 8 const A.redirect(x) : this(x + 1);
11 const A.optional([this.x = 5]); 9 const A.optional([this.x = 5]);
12 } 10 }
13 11
14 class B extends A { 12 class B extends A {
15 const B(x, this.y) : super(x); 13 const B(x, this.y) : super(x);
16 const B.redirect(x, y) : this(x + 22, y + 22); 14 const B.redirect(x, y) : this(x + 22, y + 22);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 Expect.equals(null, c6.y); 96 Expect.equals(null, c6.y);
99 Expect.equals(null, c6.z); 97 Expect.equals(null, c6.z);
100 Expect.equals(null, c7.x); 98 Expect.equals(null, c7.x);
101 Expect.equals(null, c7.y); 99 Expect.equals(null, c7.y);
102 Expect.equals(null, c7.z); 100 Expect.equals(null, c7.z);
103 Expect.equals(null, c8.x); 101 Expect.equals(null, c8.x);
104 Expect.equals(null, c8.y); 102 Expect.equals(null, c8.y);
105 Expect.equals(9911, c8.z); 103 Expect.equals(9911, c8.z);
106 Expect.identical(c3, c3b); 104 Expect.identical(c3, c3b);
107 } 105 }
OLDNEW
« no previous file with comments | « tests/language/compile_time_constant_h_test.dart ('k') | tests/language/compile_time_constant_j_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698