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

Side by Side Diff: tests/language/compile_time_constant_i_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 class A { 7 class A {
6 final x; 8 final x;
7 const A(this.x); 9 const A(this.x);
8 const A.redirect(x) : this(x + 1); 10 const A.redirect(x) : this(x + 1);
9 const A.optional([this.x = 5]); 11 const A.optional([this.x = 5]);
10 } 12 }
11 13
12 class B extends A { 14 class B extends A {
13 const B(x, this.y) : super(x); 15 const B(x, this.y) : super(x);
14 const B.redirect(x, y) : this(x + 22, y + 22); 16 const B.redirect(x, y) : this(x + 22, y + 22);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 Expect.equals(null, c6.y); 98 Expect.equals(null, c6.y);
97 Expect.equals(null, c6.z); 99 Expect.equals(null, c6.z);
98 Expect.equals(null, c7.x); 100 Expect.equals(null, c7.x);
99 Expect.equals(null, c7.y); 101 Expect.equals(null, c7.y);
100 Expect.equals(null, c7.z); 102 Expect.equals(null, c7.z);
101 Expect.equals(null, c8.x); 103 Expect.equals(null, c8.x);
102 Expect.equals(null, c8.y); 104 Expect.equals(null, c8.y);
103 Expect.equals(9911, c8.z); 105 Expect.equals(9911, c8.z);
104 Expect.identical(c3, c3b); 106 Expect.identical(c3, c3b);
105 } 107 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698